From 6978dd4afec5cdb4c56c021ef8eaf37184468919 Mon Sep 17 00:00:00 2001 From: "5684185+vsariola@users.noreply.github.com" <5684185+vsariola@users.noreply.github.com> Date: Sun, 2 Nov 2025 16:18:24 +0200 Subject: [PATCH] refactor(tracker/gioui): remove unused function parameters --- tracker/gioui/instrument_editor.go | 4 ++-- tracker/gioui/tracker.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tracker/gioui/instrument_editor.go b/tracker/gioui/instrument_editor.go index a491e0a..1f4206c 100644 --- a/tracker/gioui/instrument_editor.go +++ b/tracker/gioui/instrument_editor.go @@ -415,7 +415,7 @@ func (pe *InstrumentEditor) drawSignals(gtx C, rowTitleWidth int) { } switch { case wire.FromSet && !wire.ToSet: - pe.drawRemoteSendSignal(gtx, wire, colP.First, rowP.First) + pe.drawRemoteSendSignal(gtx, wire, rowP.First) case !wire.FromSet && wire.ToSet: pe.drawRemoteReceiveSignal(gtx, wire, colP.First, rowP.First, clr) case wire.FromSet && wire.ToSet: @@ -434,7 +434,7 @@ func (pe *InstrumentEditor) drawBackGround(gtx C) { } } -func (pe *InstrumentEditor) drawRemoteSendSignal(gtx C, wire tracker.Wire, col, row int) { +func (pe *InstrumentEditor) drawRemoteSendSignal(gtx C, wire tracker.Wire, row int) { sy := wire.From - row t := TrackerFromContext(gtx) defer op.Offset(image.Pt(gtx.Dp(5), (sy+1)*gtx.Dp(t.Theme.UnitEditor.Height)-gtx.Dp(16))).Push(gtx.Ops).Pop() diff --git a/tracker/gioui/tracker.go b/tracker/gioui/tracker.go index c96ea86..f119227 100644 --- a/tracker/gioui/tracker.go +++ b/tracker/gioui/tracker.go @@ -177,7 +177,7 @@ func (t *Tracker) Main() { } gtx := app.NewContext(&ops, e) gtx.Values = globals - t.Layout(gtx, w) + t.Layout(gtx) e.Frame(gtx.Ops) if t.Quitted() { w.Perform(system.ActionClose) @@ -218,7 +218,7 @@ func titleFromPath(path string) string { return fmt.Sprintf("Sointu Tracker - %s", path) } -func (t *Tracker) Layout(gtx layout.Context, w *app.Window) { +func (t *Tracker) Layout(gtx layout.Context) { zoomFactor := ZoomFactors[t.Zoom] gtx.Metric.PxPerDp *= zoomFactor gtx.Metric.PxPerSp *= zoomFactor