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,
|
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",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue