From 87262e16bdaaec926ec34bdda010a32a879a0583 Mon Sep 17 00:00:00 2001 From: Jacob Date: Thu, 2 May 2024 17:05:05 +0200 Subject: [PATCH] Remove useless row counter --- layout/formlayout.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/layout/formlayout.go b/layout/formlayout.go index 312b7d2bcb..08496b5611 100644 --- a/layout/formlayout.go +++ b/layout/formlayout.go @@ -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()) { @@ -100,7 +99,6 @@ func (f *formLayout) Layout(objects []fyne.CanvasObject, size fyne.Size) { } y += rowHeight + padding - row++ } }