diff --git a/macos/Sources/Ghostty/Surface View/InspectorView.swift b/macos/Sources/Ghostty/Surface View/InspectorView.swift index e8ad9e59d..03be794e9 100644 --- a/macos/Sources/Ghostty/Surface View/InspectorView.swift +++ b/macos/Sources/Ghostty/Surface View/InspectorView.swift @@ -415,8 +415,6 @@ extension Ghostty { // MARK: MTKView override func draw(_ dirtyRect: NSRect) { - Ghostty.logger.warning("inspector draw at \(Date())") - guard let commandBuffer = self.commandQueue.makeCommandBuffer(), let descriptor = self.currentRenderPassDescriptor else { diff --git a/src/App.zig b/src/App.zig index 3e83e414d..33c8318db 100644 --- a/src/App.zig +++ b/src/App.zig @@ -240,7 +240,7 @@ fn drainMailbox(self: *App, rt_app: *apprt.App) !void { if (comptime std.log.logEnabled(.debug, .app)) { switch (message) { // these tend to be way too verbose for normal debugging - .redraw_surface, .redraw_inspector => {}, + .redraw_surface => {}, else => log.debug("mailbox message={t}", .{message}), } } @@ -250,7 +250,6 @@ fn drainMailbox(self: *App, rt_app: *apprt.App) !void { .close => |surface| self.closeSurface(surface), .surface_message => |msg| try self.surfaceMessage(msg.surface, msg.message), .redraw_surface => |surface| try self.redrawSurface(rt_app, surface), - .redraw_inspector => |surface| self.redrawInspector(rt_app, surface), // If we're quitting, then we set the quit flag and stop // draining the mailbox immediately. This lets us defer @@ -289,11 +288,6 @@ fn redrawSurface( ); } -fn redrawInspector(self: *App, rt_app: *apprt.App, surface: *apprt.Surface) void { - if (!self.hasRtSurface(surface)) return; - rt_app.redrawInspector(surface); -} - /// Create a new window pub fn newWindow(self: *App, rt_app: *apprt.App, msg: Message.NewWindow) !void { const target: apprt.Target = target: { @@ -565,10 +559,6 @@ pub const Message = union(enum) { /// message if it needs to. redraw_surface: *apprt.Surface, - /// Redraw the inspector. This is called whenever some non-OS event - /// causes the inspector to need to be redrawn. - redraw_inspector: *apprt.Surface, - const NewWindow = struct { /// The parent surface parent: ?*Surface = null,