Skip to content

Commit 16f9de8

Browse files
committed
Remove unused protocol function
1 parent 09b15b1 commit 16f9de8

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

devdocs-macos/DocumentationViewController.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -303,16 +303,4 @@ extension DocumentationViewController: NavigationToolbarItemDelegate {
303303
return false;
304304
}
305305
}
306-
307-
func setTargetAndAction(_ button: NSButton, forItem item: NavigationToolbarItem) {
308-
button.target = self
309-
switch item.itemIdentifier {
310-
case .navigateBack:
311-
button.action = #selector(goBack)
312-
case .navigateForward:
313-
button.action = #selector(goForward)
314-
default:
315-
button.target = nil
316-
}
317-
}
318306
}

devdocs-macos/NavigationToolbarItem.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ class NavigationToolbarItem: NSToolbarItem {
1212

1313
protocol NavigationToolbarItemDelegate: class {
1414
func canNavigate(_ item: NavigationToolbarItem) -> Bool
15-
func setTargetAndAction(_ button: NSButton, forItem item: NavigationToolbarItem)
1615
}

0 commit comments

Comments
 (0)