refactor: remove unused function

This commit is contained in:
CJ van den Berg 2025-03-05 14:28:31 +01:00
parent 34afb46078
commit 8ae9ad4b92
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -224,15 +224,6 @@ fn close_all_panel_views(self: *Self) void {
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 {
if (self.buffer_manager.is_dirty())
return tp.exit("unsaved changes");