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.
This commit is contained in:
atlas 2026-07-23 15:05:19 +02:00 committed by mara
commit f3207ce9f8

View file

@ -32,8 +32,6 @@ pub enum Template {
MetaUpdate, MetaUpdate,
/// First-deploy spawn (approval-driven). /// First-deploy spawn (approval-driven).
Spawn, Spawn,
/// Reserved for a future destroy integration.
Destroy,
/// Mechanical stop + converge to `wanted = Up` (a restart). /// Mechanical stop + converge to `wanted = Up` (a restart).
Restart, Restart,
/// Signal → drain → mechanical stop → converge to `wanted = Up` — a /// Signal → drain → mechanical stop → converge to `wanted = Up` — a
@ -47,9 +45,6 @@ pub enum Template {
Start, Start,
/// Converge to `wanted = Offline`. /// Converge to `wanted = Offline`.
Stop, Stop,
/// Bare converge of observed power state to the persisted intent
/// (boot reconcile).
Reconcile,
/// Boot-time config sweep as one DAG. /// Boot-time config sweep as one DAG.
Boot, Boot,
} }
@ -61,14 +56,12 @@ impl Template {
Template::Rebuild => "rebuild", Template::Rebuild => "rebuild",
Template::MetaUpdate => "meta_update", Template::MetaUpdate => "meta_update",
Template::Spawn => "spawn", Template::Spawn => "spawn",
Template::Destroy => "destroy",
Template::Restart => "restart", Template::Restart => "restart",
Template::GracefulRestart => "graceful_restart", Template::GracefulRestart => "graceful_restart",
Template::PermChange => "perm_change", Template::PermChange => "perm_change",
Template::GracefulStop => "graceful_stop", Template::GracefulStop => "graceful_stop",
Template::Start => "start", Template::Start => "start",
Template::Stop => "stop", Template::Stop => "stop",
Template::Reconcile => "reconcile",
Template::Boot => "boot", Template::Boot => "boot",
} }
} }