summaryrefslogtreecommitdiffstats
path: root/pkg/gui/main_panels.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-11-16 20:38:26 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-11-18 08:36:19 +1100
commit682db77401e5c44de1eeeb179afd0114bfe82f72 (patch)
tree1dbdadd56b6e893550565da86fe37cb0a40be30d /pkg/gui/main_panels.go
parent6faed08d9de2841788b1eac4077862bc4ae682f1 (diff)
fix lint errors
Diffstat (limited to 'pkg/gui/main_panels.go')
-rw-r--r--pkg/gui/main_panels.go19
1 files changed, 8 insertions, 11 deletions
diff --git a/pkg/gui/main_panels.go b/pkg/gui/main_panels.go
index 68c28ff23..b0098f5e9 100644
--- a/pkg/gui/main_panels.go
+++ b/pkg/gui/main_panels.go
@@ -14,11 +14,6 @@ type viewUpdateOpts struct {
task updateTask
}
-type coordinates struct {
- x int
- y int
-}
-
type refreshMainOpts struct {
main *viewUpdateOpts
secondary *viewUpdateOpts
@@ -91,9 +86,10 @@ func (gui *Gui) createRunPtyTask(cmd *exec.Cmd) *runPtyTask {
return &runPtyTask{cmd: cmd}
}
-func (gui *Gui) createRunPtyTaskWithPrefix(cmd *exec.Cmd, prefix string) *runPtyTask {
- return &runPtyTask{cmd: cmd, prefix: prefix}
-}
+// currently unused
+// func (gui *Gui) createRunPtyTaskWithPrefix(cmd *exec.Cmd, prefix string) *runPtyTask {
+// return &runPtyTask{cmd: cmd, prefix: prefix}
+// }
type runFunctionTask struct {
f func(chan struct{}) error
@@ -103,9 +99,10 @@ func (t *runFunctionTask) GetKind() int {
return RUN_FUNCTION
}
-func (gui *Gui) createRunFunctionTask(f func(chan struct{}) error) *runFunctionTask {
- return &runFunctionTask{f: f}
-}
+// currently unused
+// func (gui *Gui) createRunFunctionTask(f func(chan struct{}) error) *runFunctionTask {
+// return &runFunctionTask{f: f}
+// }
func (gui *Gui) runTaskForView(viewName string, task updateTask) error {
switch task.GetKind() {