summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context/working_tree_context.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/context/working_tree_context.go')
-rw-r--r--pkg/gui/context/working_tree_context.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/pkg/gui/context/working_tree_context.go b/pkg/gui/context/working_tree_context.go
index f8da6a068..900158320 100644
--- a/pkg/gui/context/working_tree_context.go
+++ b/pkg/gui/context/working_tree_context.go
@@ -19,10 +19,6 @@ func NewWorkingTreeContext(
view *gocui.View,
getDisplayStrings func(startIdx int, length int) [][]string,
- onFocus func(types.OnFocusOpts) error,
- onRenderToMain func() error,
- onFocusLost func(opts types.OnFocusLostOpts) error,
-
c *types.HelperCommon,
) *WorkingTreeContext {
viewModel := filetree.NewFileTreeViewModel(getModel, c.Log, c.UserConfig.Gui.ShowFileTree)
@@ -36,11 +32,7 @@ func NewWorkingTreeContext(
Key: FILES_CONTEXT_KEY,
Kind: types.SIDE_CONTEXT,
Focusable: true,
- }), ContextCallbackOpts{
- OnFocus: onFocus,
- OnFocusLost: onFocusLost,
- OnRenderToMain: onRenderToMain,
- }),
+ }), ContextCallbackOpts{}),
list: viewModel,
getDisplayStrings: getDisplayStrings,
c: c,