summaryrefslogtreecommitdiff
path: root/pkg/gui/mainview.go
diff options
context:
space:
mode:
authorIbrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>2019-01-04 00:41:15 +0300
committerIbrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>2019-01-04 00:41:15 +0300
commit9ce00feb165a537799f0172aa3486d27863cd7ed (patch)
tree374f19551ccad9dd74c9f453df78dfed1567bd14 /pkg/gui/mainview.go
parentasync loading (diff)
downloadgitbatch-9ce00feb165a537799f0172aa3486d27863cd7ed.tar.gz
remove unnecessary code
Diffstat (limited to 'pkg/gui/mainview.go')
-rw-r--r--pkg/gui/mainview.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/pkg/gui/mainview.go b/pkg/gui/mainview.go
index 8ee31ba..bcf58ed 100644
--- a/pkg/gui/mainview.go
+++ b/pkg/gui/mainview.go
@@ -9,30 +9,6 @@ import (
log "github.com/sirupsen/logrus"
)
-// this is the initial function for filling the values for the main view. the
-// function waits a separate routine to fill the gui's repository slice
-func (gui *Gui) fillMain(g *gocui.Gui) error {
- g.Update(func(g *gocui.Gui) error {
- v, err := g.View(mainViewFeature.Name)
- if err != nil {
- return err
- }
-
- // if there is still a loading screen we better get rid of it
- if err := g.DeleteView(loadingViewFeature.Name); err != nil {
- return err
- }
- if _, err := gui.setCurrentViewOnTop(g, mainViewFeature.Name); err != nil {
- return err
- }
-
- // Sort by name is default behavior as expected, so it handles initial
- // rendering of the main view
- return gui.sortByName(g, v)
- })
- return nil
-}
-
// refresh the main view and re-render the repository representations
func (gui *Gui) renderMain() error {
gui.mutex.Lock()