From dcca861bcc5fe25a32ed4e421127cc5282ce977a Mon Sep 17 00:00:00 2001 From: David Z <56000498+pkmaster21@users.noreply.github.com> Date: Fri, 30 Oct 2026 22:08:48 -0400 Subject: [PATCH] chore(studio): remove unused discoveryContext and app.css (#401) Signed-off-by: David Z <56000498+pkmaster21@users.noreply.github.com> --- CHANGELOG.md | 3 +++ studio/frontend/src/app.css | 54 ------------------------------------- studio/wifi_discovery.go | 10 ------- 3 files changed, 3 insertions(+), 64 deletions(-) delete mode 100644 studio/frontend/src/app.css diff --git a/CHANGELOG.md b/CHANGELOG.md index 07b049f3..76652605 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## [Unreleased] +### Removed +- **Studio: two leftovers nothing used.** The `discoveryContext` helper in `studio/wifi_discovery.go` was never called (WiFi discovery builds its own context), and `studio/frontend/src/app.css` held Wails starter-template styles that nothing imported. No behavior changes. The third item in the issue, a commented-out `replace` in `studio/go.mod`, was already removed in #477. (#401) + ## [0.26.1] - 2026-10-26 ### Security diff --git a/studio/frontend/src/app.css b/studio/frontend/src/app.css deleted file mode 100644 index 59d06f69..00000000 --- a/studio/frontend/src/app.css +++ /dev/null @@ -1,54 +0,0 @@ -#logo { - display: block; - width: 50%; - height: 50%; - margin: auto; - padding: 10% 0 0; - background-position: center; - background-repeat: no-repeat; - background-size: 100% 100%; - background-origin: content-box; -} - -.result { - height: 20px; - line-height: 20px; - margin: 1.5rem auto; -} - -.input-box .btn { - width: 60px; - height: 30px; - line-height: 30px; - border-radius: 3px; - border: none; - margin: 0 0 0 20px; - padding: 0 8px; - cursor: pointer; -} - -.input-box .btn:hover { - background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%); - color: #333333; -} - -.input-box .input { - border: none; - border-radius: 3px; - outline: none; - height: 30px; - line-height: 30px; - padding: 0 10px; - background-color: rgba(240, 240, 240, 1); - -webkit-font-smoothing: antialiased; -} - -.input-box .input:hover { - border: none; - background-color: rgba(255, 255, 255, 1); -} - -.input-box .input:focus { - border: none; - background-color: rgba(255, 255, 255, 1); -} \ No newline at end of file diff --git a/studio/wifi_discovery.go b/studio/wifi_discovery.go index b8a8aaa2..1db1ffd9 100644 --- a/studio/wifi_discovery.go +++ b/studio/wifi_discovery.go @@ -4,7 +4,6 @@ import ( "context" "fmt" "sync" - "time" "github.com/grandcat/zeroconf" wailsruntime "github.com/wailsapp/wails/v2/pkg/runtime" @@ -121,12 +120,3 @@ func entryToDevice(e *zeroconf.ServiceEntry) WiFiDevice { } return dev } - -// Helper used by App methods to construct a default browse context tied to -// the App's lifecycle. -func discoveryContext(parent context.Context) (context.Context, context.CancelFunc) { - if parent == nil { - parent = context.Background() - } - return context.WithTimeout(parent, 24*time.Hour) // effectively forever; user stops manually -}