mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-13 22:17:05 +02:00
remove dead code
This commit is contained in:
parent
872cf0d726
commit
0b7bda291c
@ -63,7 +63,6 @@ func (gui *Gui) handleCheckoutCommitFile(g *gocui.Gui, v *gocui.View) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// TODO: verify this works for directories
|
||||
if err := gui.GitCommand.CheckoutFile(gui.State.CommitFileManager.GetParent(), node.GetPath()); err != nil {
|
||||
return gui.surfaceError(err)
|
||||
}
|
||||
|
@ -40,9 +40,3 @@ func (gui *Gui) resetWindowForView(viewName string) {
|
||||
// we assume here that the window contains as its default view a view with the same name as the window
|
||||
gui.State.WindowViewNameMap[window] = window
|
||||
}
|
||||
|
||||
func (gui *Gui) renderWindow(window string) error {
|
||||
viewName := gui.getViewNameForWindow(window)
|
||||
gui.Log.Warn(viewName)
|
||||
return gui.rerenderView(viewName)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user