From f3207ce9f8a4434d6cd0469a070b6ca130863752 Mon Sep 17 00:00:00 2001 From: atlas Date: Thu, 23 Jul 2026 15:05:19 +0200 Subject: [PATCH] refactor(#2591): drop never-constructed Template::{Destroy,Reconcile} Now that Template is internal to hive-c0re (not a pub wire enum), the dead-code lint flags the two variants nothing ever constructs. Removed them + their as_str arms; terminal_hook's catch-all arm is unaffected. --- hive-c0re/src/job_queue/model.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/hive-c0re/src/job_queue/model.rs b/hive-c0re/src/job_queue/model.rs index 15159ea9..192ea881 100644 --- a/hive-c0re/src/job_queue/model.rs +++ b/hive-c0re/src/job_queue/model.rs @@ -32,8 +32,6 @@ pub enum Template { MetaUpdate, /// First-deploy spawn (approval-driven). Spawn, - /// Reserved for a future destroy integration. - Destroy, /// Mechanical stop + converge to `wanted = Up` (a restart). Restart, /// Signal → drain → mechanical stop → converge to `wanted = Up` — a @@ -47,9 +45,6 @@ pub enum Template { Start, /// Converge to `wanted = Offline`. Stop, - /// Bare converge of observed power state to the persisted intent - /// (boot reconcile). - Reconcile, /// Boot-time config sweep as one DAG. Boot, } @@ -61,14 +56,12 @@ impl Template { Template::Rebuild => "rebuild", Template::MetaUpdate => "meta_update", Template::Spawn => "spawn", - Template::Destroy => "destroy", Template::Restart => "restart", Template::GracefulRestart => "graceful_restart", Template::PermChange => "perm_change", Template::GracefulStop => "graceful_stop", Template::Start => "start", Template::Stop => "stop", - Template::Reconcile => "reconcile", Template::Boot => "boot", } }