refactor(tracker/gioui): remove unused function parameters

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-11-02 16:18:24 +02:00
parent fa9654d311
commit 6978dd4afe
2 changed files with 4 additions and 4 deletions

View File

@ -415,7 +415,7 @@ func (pe *InstrumentEditor) drawSignals(gtx C, rowTitleWidth int) {
} }
switch { switch {
case wire.FromSet && !wire.ToSet: case wire.FromSet && !wire.ToSet:
pe.drawRemoteSendSignal(gtx, wire, colP.First, rowP.First) pe.drawRemoteSendSignal(gtx, wire, rowP.First)
case !wire.FromSet && wire.ToSet: case !wire.FromSet && wire.ToSet:
pe.drawRemoteReceiveSignal(gtx, wire, colP.First, rowP.First, clr) pe.drawRemoteReceiveSignal(gtx, wire, colP.First, rowP.First, clr)
case wire.FromSet && wire.ToSet: 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 sy := wire.From - row
t := TrackerFromContext(gtx) 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() defer op.Offset(image.Pt(gtx.Dp(5), (sy+1)*gtx.Dp(t.Theme.UnitEditor.Height)-gtx.Dp(16))).Push(gtx.Ops).Pop()

View File

@ -177,7 +177,7 @@ func (t *Tracker) Main() {
} }
gtx := app.NewContext(&ops, e) gtx := app.NewContext(&ops, e)
gtx.Values = globals gtx.Values = globals
t.Layout(gtx, w) t.Layout(gtx)
e.Frame(gtx.Ops) e.Frame(gtx.Ops)
if t.Quitted() { if t.Quitted() {
w.Perform(system.ActionClose) w.Perform(system.ActionClose)
@ -218,7 +218,7 @@ func titleFromPath(path string) string {
return fmt.Sprintf("Sointu Tracker - %s", path) 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] zoomFactor := ZoomFactors[t.Zoom]
gtx.Metric.PxPerDp *= zoomFactor gtx.Metric.PxPerDp *= zoomFactor
gtx.Metric.PxPerSp *= zoomFactor gtx.Metric.PxPerSp *= zoomFactor