mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
all: remove unused fields, functions and add missing error handling
Credit to staticcheck.io. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -1001,13 +1001,6 @@ func (w *window) isAnimating() bool {
|
||||
return w.animating || w.fling.anim.Active()
|
||||
}
|
||||
|
||||
func (w *window) kill(err error) {
|
||||
if w.pendingErr == nil {
|
||||
w.pendingErr = err
|
||||
}
|
||||
w.dead = true
|
||||
}
|
||||
|
||||
func (w *window) draw(sync bool) {
|
||||
w.flushScroll()
|
||||
w.mu.Lock()
|
||||
|
||||
@@ -203,11 +203,9 @@ func (w *x11Window) atom(name string, onlyIfExists bool) C.Atom {
|
||||
// in x11window.loop.
|
||||
//
|
||||
type x11EventHandler struct {
|
||||
w *x11Window
|
||||
text []byte
|
||||
xev *C.XEvent
|
||||
status C.Status
|
||||
keysym C.KeySym
|
||||
w *x11Window
|
||||
text []byte
|
||||
xev *C.XEvent
|
||||
}
|
||||
|
||||
// handleEvents returns true if the window needs to be redrawn.
|
||||
|
||||
Reference in New Issue
Block a user