From dfa8229d03241f0316e931cba4139e516485bda9 Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Fri, 16 Jul 2021 10:03:39 -0600 Subject: [PATCH] lib/hardwaremain: Drop boot_state_current_{block,unblock}() There are no more callers. BUG=b:179699789 TEST=Compile guybrush Signed-off-by: Raul E Rangel Change-Id: I522f17c0e450641c0a60496ba07800da7e39889c Reviewed-on: https://review.coreboot.org/c/coreboot/+/56389 Reviewed-by: Karthik Ramasubramanian Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/include/bootstate.h | 3 --- src/lib/hardwaremain.c | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/src/include/bootstate.h b/src/include/bootstate.h index a64446a4a1..87ed0c8425 100644 --- a/src/include/bootstate.h +++ b/src/include/bootstate.h @@ -163,9 +163,6 @@ void boot_state_sched_entries(struct boot_state_init_entry *entries, * success < 0 when the phase of the (state,seq) has already ran. */ int boot_state_block(boot_state_t state, boot_state_sequence_t seq); int boot_state_unblock(boot_state_t state, boot_state_sequence_t seq); -/* Block/Unblock current state phase from transitioning. */ -void boot_state_current_block(void); -void boot_state_current_unblock(void); /* In order to schedule boot state callbacks at compile-time specify the * entries in an array using the BOOT_STATE_INIT_ENTRIES and diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c index 1bda525c7e..a239f8f238 100644 --- a/src/lib/hardwaremain.c +++ b/src/lib/hardwaremain.c @@ -519,13 +519,3 @@ int boot_state_unblock(boot_state_t state, boot_state_sequence_t seq) return 0; } - -void boot_state_current_block(void) -{ - boot_state_block(current_phase.state_id, current_phase.seq); -} - -void boot_state_current_unblock(void) -{ - boot_state_unblock(current_phase.state_id, current_phase.seq); -}