chore: delete code no binary or test reaches

This commit is contained in:
sam committed 2026-10-17 10:14:26 +11:00
1 parent 7986ccb3f7
commit 01acb97f96
34 files changed
+1 -1483

No files matched your search

-13
View File
@@ -431,19 +431,6 @@ func reverseClone(values []string) []string {
return out
}
// Manifests returns the registered modules' manifests sorted by id. It is the
// read side of the running set: a live load reports what is loaded from here.
func (h *Host) Manifests() []Manifest {
h.mu.RLock()
defer h.mu.RUnlock()
out := make([]Manifest, 0, len(h.modules))
for _, entry := range h.modules {
out = append(out, entry.manifest.clone())
}
slices.SortFunc(out, func(a, b Manifest) int { return strings.Compare(a.ID, b.ID) })
return out
}
// prepareModule validates a module and returns its cloned manifest, the
// validation Register, Add and Replace all share.
func prepareModule(module Module) (Manifest, error) {