From 8d4e9162437e892e98bcbdba7c298f1a7dc86773 Mon Sep 17 00:00:00 2001 From: "Wilhelmina \"Willow\" Poortenga" <156546731+wittywilla@users.noreply.github.com> Date: Mon, 23 Nov 2026 01:54:31 -0500 Subject: [PATCH] Drop the unused keysOf (#18) integration.go's keysOf had no callers (staticcheck U1000). Closes #18 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 8 ++++++++ integration.go | 9 --------- module.json | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 482d515..d3693c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,14 @@ What changed in WittyModule, newest first. What changed before it had a repository of its own is in the [WittyMediaServer changelog](https://github.com/wittywilla/WittyMediaServer/blob/master/CHANGELOG.md). +## 0.5.6 + +- Nothing changes for modules built with it: this release only tidies the kit's code. + +## Developer notes for 0.5.6 + +- The unused `keysOf` is gone from `integration.go` (staticcheck U1000). + ## 0.5.5 - SDUI core synced from the server (a focusable list's rows stay focus stops; a List's rows carry their items' buttons). Text files are checked out with LF, and module-kit gives every module a .gitattributes that says so (#7). diff --git a/integration.go b/integration.go index bb36cac..a306cb8 100644 --- a/integration.go +++ b/integration.go @@ -586,15 +586,6 @@ func (in *Integration) Validate(m *Manifest) error { return errors.New(strings.Join(lines, "\n")) } -func keysOf(m map[string]bool) []string { - ks := make([]string, 0, len(m)) - for k := range m { - ks = append(ks, k) - } - slices.Sort(ks) - return ks -} - // ParseSize reads "256KB", "4MB". func ParseSize(s string) (int64, error) { m := sizeExpr.FindStringSubmatch(s) diff --git a/module.json b/module.json index 3912bf5..cf8cd53 100644 --- a/module.json +++ b/module.json @@ -1,7 +1,7 @@ { "id": "wittymodule", "name": "WittyModule", - "version": "0.5.5", + "version": "0.5.6", "license": "AGPL-3.0-or-later", "repo": "wittywilla/WittyModule", "delivery": "library",