mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Remove extra unused parameter in delegate signature
This commit is contained in:
@@ -101,7 +101,7 @@ extension DetailViewController: DetailWebViewControllerDelegate {
|
||||
statusBarView.mouseoverLink = link
|
||||
}
|
||||
|
||||
func mouseDidExit(_ detailWebViewController: DetailWebViewController, link: String) {
|
||||
func mouseDidExit(_ detailWebViewController: DetailWebViewController) {
|
||||
guard detailWebViewController === currentWebViewController else {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ import Articles
|
||||
|
||||
protocol DetailWebViewControllerDelegate: class {
|
||||
func mouseDidEnter(_: DetailWebViewController, link: String)
|
||||
func mouseDidExit(_: DetailWebViewController, link: String)
|
||||
func mouseDidExit(_: DetailWebViewController)
|
||||
}
|
||||
|
||||
final class DetailWebViewController: NSViewController, WKUIDelegate {
|
||||
@@ -178,8 +178,8 @@ extension DetailWebViewController: WKScriptMessageHandler {
|
||||
if message.name == MessageName.mouseDidEnter, let link = message.body as? String {
|
||||
delegate?.mouseDidEnter(self, link: link)
|
||||
}
|
||||
else if message.name == MessageName.mouseDidExit, let link = message.body as? String{
|
||||
delegate?.mouseDidExit(self, link: link)
|
||||
else if message.name == MessageName.mouseDidExit {
|
||||
delegate?.mouseDidExit(self)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user