1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 07:13:24 +03:00

Remove re-implemented old code

This commit is contained in:
Tae Won Ha 2019-02-24 23:45:14 +01:00
parent cbac8e9028
commit 8f85380e27
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -818,37 +818,6 @@ extension FileOutlineViewOld {
}
}
// MARK: - NSView
extension FileOutlineViewOld {
override func keyDown(with event: NSEvent) {
guard let char = event.charactersIgnoringModifiers?.first else {
super.keyDown(with: event)
return
}
guard let item = self.selectedItem as? FileBrowserItem else {
super.keyDown(with: event)
return
}
switch char {
case " ", "\r": // Why "\r" and not "\n"?
if item.url.isDir || item.url.isPackage {
self.toggle(item: item)
} else {
self.emit(
UuidAction(uuid: self.uuid,
action: .open(url: item.url, mode: .newTab))
)
}
default:
super.keyDown(with: event)
}
}
}
private class FileBrowserItem: Hashable, Comparable, CustomStringConvertible {
static func ==(left: FileBrowserItem, right: FileBrowserItem) -> Bool {