Skip to content

Commit

Permalink
Merge pull request knqyf263#261 from knqyf263/unused-variable-cleanup…
Browse files Browse the repository at this point in the history
…-and-tag

Removed unused variable
  • Loading branch information
RamiAwar authored Feb 2, 2024
2 parents 91be065 + 4355252 commit 19d7ee7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 1 addition & 4 deletions dialog/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import (
)

var (
views = []string{}
layoutStep = 3
curView = -1
idxView = 0
views = []string{}

//CurrentCommand is the command before assigning to variables
CurrentCommand string
Expand Down
6 changes: 5 additions & 1 deletion dialog/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import (
"github.com/awesome-gocui/gocui"
)

var (
layoutStep = 3
curView = -1
)

func generateView(g *gocui.Gui, desc string, fill string, coords []int, editable bool) error {
if StringInSlice(desc, views) {
return nil
Expand All @@ -24,7 +29,6 @@ func generateView(g *gocui.Gui, desc string, fill string, coords []int, editable
view.Editable = editable

views = append(views, desc)
idxView++

return nil
}
Expand Down

0 comments on commit 19d7ee7

Please sign in to comment.