mirror of
https://github.com/vsariola/sointu.git
synced 2025-11-12 21:02:52 -05:00
refactor(tracker/gioui): remove unused function parameters
This commit is contained in:
parent
fa9654d311
commit
6978dd4afe
@ -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
|
||||
|
||||
Reference in New Issue
Block a user