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:
parent
51bcad1adb
commit
f3207ce9f8
1 changed files with 0 additions and 7 deletions
|
|
@ -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",
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue