refactor: remove unused function
This commit is contained in:
parent
34afb46078
commit
8ae9ad4b92
1 changed files with 0 additions and 9 deletions
|
@ -224,15 +224,6 @@ fn close_all_panel_views(self: *Self) void {
|
||||||
tui.resize();
|
tui.resize();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn toggle_view(self: *Self, view: anytype) !void {
|
|
||||||
if (self.widgets.get(@typeName(view))) |w| {
|
|
||||||
self.widgets.remove(w.*);
|
|
||||||
} else {
|
|
||||||
try self.widgets.add(try view.create(self.allocator, self.plane));
|
|
||||||
}
|
|
||||||
tui.resize();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn check_all_not_dirty(self: *const Self) command.Result {
|
fn check_all_not_dirty(self: *const Self) command.Result {
|
||||||
if (self.buffer_manager.is_dirty())
|
if (self.buffer_manager.is_dirty())
|
||||||
return tp.exit("unsaved changes");
|
return tp.exit("unsaved changes");
|
||||||
|
|
Loading…
Add table
Reference in a new issue