mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
app: drop return value from Window.driverDo
It's not used anymore. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-5
@@ -246,14 +246,12 @@ func (w *Window) Close() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// driverDo calls f as soon as the window has a valid driver attached,
|
// driverDo waits for the window to have a valid driver attached and calls f.
|
||||||
// or return false if the window was destroyed while waiting.
|
// It does nothing if the if the window was destroyed while waiting.
|
||||||
func (w *Window) driverDo(f func()) bool {
|
func (w *Window) driverDo(f func()) {
|
||||||
select {
|
select {
|
||||||
case w.driverFuncs <- f:
|
case w.driverFuncs <- f:
|
||||||
return true
|
|
||||||
case <-w.dead:
|
case <-w.dead:
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user