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:
Elias Naur
2020-02-27 22:26:54 +01:00
parent 4b7387369b
commit bfb50cef5d
10 changed files with 19 additions and 53 deletions
-7
View File
@@ -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()
+3 -5
View File
@@ -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.