From 60c900256cb8ec41e6494edcac94b57317557f33 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Mon, 6 Jan 2025 13:06:51 +0000 Subject: [PATCH] Remove the now unused variable --- internal/async/goroutine.go | 4 ++++ internal/driver/glfw/driver.go | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/internal/async/goroutine.go b/internal/async/goroutine.go index 7b699f67b6..08a42b65e2 100644 --- a/internal/async/goroutine.go +++ b/internal/async/goroutine.go @@ -1,5 +1,9 @@ package async +// mainGoroutineID stores the main goroutine ID. +// This ID must be initialized in main.init because +// a main goroutine may not equal to 1 due to the +// influence of a garbage collector. var mainGoroutineID uint64 func init() { diff --git a/internal/driver/glfw/driver.go b/internal/driver/glfw/driver.go index 2cfba1e9c4..3fd6a214d6 100644 --- a/internal/driver/glfw/driver.go +++ b/internal/driver/glfw/driver.go @@ -22,12 +22,6 @@ import ( "fyne.io/fyne/v2/storage/repository" ) -// mainGoroutineID stores the main goroutine ID. -// This ID must be initialized in main.init because -// a main goroutine may not equal to 1 due to the -// influence of a garbage collector. -var mainGoroutineID uint64 - var curWindow *window // Declare conformity with Driver