aboutsummaryrefslogtreecommitdiff
path: root/initd/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'initd/config.c')
-rw-r--r--initd/config.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/initd/config.c b/initd/config.c
index 7f9f25c..d994faa 100644
--- a/initd/config.c
+++ b/initd/config.c
@@ -15,7 +15,6 @@ static size_t queue_count[TGT_MAX];
/* current state */
static size_t queue_idx = 0;
static int target = TGT_BOOT;
-static size_t singleshot = 0;
int config_load(void)
{
@@ -103,29 +102,7 @@ void config_set_target(int tgt)
queue_idx = 0;
}
-int config_get_current_target(void)
-{
- return target;
-}
-
-bool config_is_current_target_complete(void)
-{
- return singleshot == 0 && queue_idx >= queue_count[target];
-}
-
bool config_should_respawn(void)
{
return target != TGT_REBOOT && target != TGT_SHUTDOWN;
}
-
-void config_singleshot_started(void)
-{
- singleshot++;
-}
-
-void config_singleshot_terminated(void)
-{
- assert(singleshot > 0);
-
- singleshot--;
-}