refactor: remove verbose log messages in mainview

This commit is contained in:
CJ van den Berg 2025-11-26 19:20:46 +01:00
parent 008950255b
commit 198ee29abe
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -447,8 +447,6 @@ const cmds = struct {
pub const navigate_split_vertical_meta: Meta = .{ .arguments = &.{.object} }; pub const navigate_split_vertical_meta: Meta = .{ .arguments = &.{.object} };
pub fn navigate(self: *Self, ctx: Ctx) Result { pub fn navigate(self: *Self, ctx: Ctx) Result {
const logger = log.logger("navigate");
defer logger.deinit();
tui.reset_drag_context(); tui.reset_drag_context();
const frame = tracy.initZone(@src(), .{ .name = "navigate" }); const frame = tracy.initZone(@src(), .{ .name = "navigate" });
defer frame.deinit(); defer frame.deinit();
@ -531,12 +529,10 @@ const cmds = struct {
.path = try self.allocator.dupe(u8, f), .path = try self.allocator.dupe(u8, f),
.goto_args = try self.allocator.dupe(u8, goto_args), .goto_args = try self.allocator.dupe(u8, goto_args),
}; };
logger.print("navigating to: {s} with restore_last_cursor_position", .{f});
try project_manager.get_mru_position(self.allocator, f, ctx_); try project_manager.get_mru_position(self.allocator, f, ctx_);
return; return;
} }
logger.print("navigating to: {s}", .{f});
return cmds.navigate_complete(self, same_file, f, goto_args, line, column, offset); return cmds.navigate_complete(self, same_file, f, goto_args, line, column, offset);
} }