From 280b8efacc9f522aa7581d74c423d382997ce529 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 12 Jun 2024 06:58:33 -0400 Subject: [PATCH] macos: I don't need any custom quicklook stuff --- .../Sources/Ghostty/SurfaceView_AppKit.swift | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/macos/Sources/Ghostty/SurfaceView_AppKit.swift b/macos/Sources/Ghostty/SurfaceView_AppKit.swift index 93375ba3c..ed8d52c43 100644 --- a/macos/Sources/Ghostty/SurfaceView_AppKit.swift +++ b/macos/Sources/Ghostty/SurfaceView_AppKit.swift @@ -1,4 +1,3 @@ -import QuickLookUI import SwiftUI import UserNotifications import GhosttyKit @@ -914,31 +913,6 @@ extension Ghostty { Ghostty.moveFocus(to: self) } } - - // MARK: QuickLook - - private var quickLookURL: NSURL? - - override func quickLook(with event: NSEvent) { - /* TODO - guard let panel = QLPreviewPanel.shared() else { return } - panel.delegate = self - panel.dataSource = self - panel.makeKeyAndOrderFront(self) - */ - } - } -} - -// MARK: QuickLook Delegates - -extension Ghostty.SurfaceView: QLPreviewPanelDelegate, QLPreviewPanelDataSource { - func numberOfPreviewItems(in panel: QLPreviewPanel!) -> Int { - return quickLookURL != nil ? 1 : 0 - } - - func previewPanel(_ panel: QLPreviewPanel!, previewItemAt index: Int) -> (any QLPreviewItem)! { - return quickLookURL ?? nil } }