mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-22 23:14:59 -04:00
refactor: fix all unused parameter / variable warnings
This commit is contained in:
parent
a601b98b74
commit
289bfb0605
@ -316,7 +316,7 @@ func (m *Model) tracksWithSameInstrument(trackIndex int) iter.Seq[int] {
|
||||
|
||||
func (m *Model) calcPatternUseCounts(track sointu.Track) []int {
|
||||
result := make([]int, len(m.d.Song.Score.Tracks))
|
||||
for j, _ := range result {
|
||||
for j := range result {
|
||||
result[j] = 0
|
||||
}
|
||||
for j := 0; j < m.d.Song.Score.Length; j++ {
|
||||
|
@ -206,7 +206,7 @@ func (b *Clickable) Update(gtx layout.Context) (widget.Click, bool) {
|
||||
return b.update(b, gtx)
|
||||
}
|
||||
|
||||
func (b *Clickable) update(t event.Tag, gtx layout.Context) (widget.Click, bool) {
|
||||
func (b *Clickable) update(_ event.Tag, gtx layout.Context) (widget.Click, bool) {
|
||||
for len(b.history) > 0 {
|
||||
c := b.history[0]
|
||||
if c.End.IsZero() || gtx.Now.Sub(c.End) < 1*time.Second {
|
||||
|
@ -37,7 +37,6 @@ type ScrollTableStyle struct {
|
||||
ColumnTitleHeight unit.Dp
|
||||
CellWidth unit.Dp
|
||||
CellHeight unit.Dp
|
||||
element func(gtx C, x, y int) D
|
||||
}
|
||||
|
||||
func NewScrollTable(table tracker.Table, vertList, horizList tracker.List) *ScrollTable {
|
||||
|
@ -51,7 +51,6 @@ type (
|
||||
filePathString tracker.String
|
||||
noteEvents []tracker.NoteEvent
|
||||
|
||||
execChan chan func()
|
||||
preferences Preferences
|
||||
|
||||
*tracker.Model
|
||||
|
Reference in New Issue
Block a user