Skip to content

Commit

Permalink
Remove useless row counter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed May 2, 2024
1 parent 3ed511b commit 87262e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions layout/formlayout.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ func (f *formLayout) Layout(objects []fyne.CanvasObject, size fyne.Size) {
padding := theme.Padding()
innerPadding := theme.InnerPadding()

row := 0
y := float32(0)
for i := 0; i < len(objects); i += formLayoutCols {
if !objects[i].Visible() && (i+1 < len(objects) && !objects[i+1].Visible()) {
Expand Down Expand Up @@ -100,7 +99,6 @@ func (f *formLayout) Layout(objects []fyne.CanvasObject, size fyne.Size) {
}

y += rowHeight + padding
row++
}
}

Expand Down

0 comments on commit 87262e1

Please sign in to comment.