summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-08-02 20:53:24 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-08-02 21:50:44 +1000
commit92f0aa23cc600acc0ab1bf61339912c750a26418 (patch)
tree649fba5b1f600e0f2a2a13c1938b0de0b97f03dc /pkg/gui/controllers.go
parentc8520fbe78453b7c593a1071a3cdc3295ad47772 (diff)
Remove file watcher code
Now that we refresh upon focus, we can scrap this file watching code. Stefan says few git UIs use file watching, and I understand why: the reason this code was problematic in the first place is that watching files is expensive and if you have too many open file handles that can cause problems. Importantly: this code that's being removed was _already_ dead.
Diffstat (limited to 'pkg/gui/controllers.go')
-rw-r--r--pkg/gui/controllers.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/pkg/gui/controllers.go b/pkg/gui/controllers.go
index 9d76349c7..cc45d833a 100644
--- a/pkg/gui/controllers.go
+++ b/pkg/gui/controllers.go
@@ -56,7 +56,6 @@ func (gui *Gui) resetHelpersAndControllers() {
stagingHelper,
mergeConflictsHelper,
worktreeHelper,
- gui.fileWatcher,
)
diffHelper := helpers.NewDiffHelper(helperCommon)
cherryPickHelper := helpers.NewCherryPickHelper(