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
+4 -5
View File
@@ -95,11 +95,10 @@ type Ops struct {
// StackOp saves and restores the operation state
// in a stack-like manner.
type StackOp struct {
stackDepth int
id stackID
macroID int
active bool
ops *Ops
id stackID
macroID int
active bool
ops *Ops
}
// MacroOp records a list of operations for later use.