SwiftFormat unusedArguments

This commit is contained in:
Nindi Gill 2023-11-19 19:34:02 +11:00
parent 46d9bd7259
commit c01ff511aa
No known key found for this signature in database
GPG key ID: FF9A7FD590D4F4B1
3 changed files with 5 additions and 5 deletions

View file

@ -12,7 +12,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
// swiftlint:disable:next weak_delegate
private let userNotificationCenterDelegate: UserNotificationCenterDelegate = .init()
func applicationDidFinishLaunching(_ notification: Notification) {
func applicationDidFinishLaunching(_: Notification) {
UNUserNotificationCenter.current().delegate = userNotificationCenterDelegate
let show: UNNotificationAction = .init(identifier: UNNotificationAction.Identifier.show, title: "Show", options: .foreground)
let success: UNNotificationCategory = .init(identifier: UNNotificationCategory.Identifier.success, actions: [show], intentIdentifiers: [], options: [])
@ -22,7 +22,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
NSWindow.allowsAutomaticWindowTabbing = false
}
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
func applicationShouldTerminateAfterLastWindowClosed(_: NSApplication) -> Bool {
true
}

View file

@ -9,7 +9,7 @@ import AppKit
import UserNotifications
class UserNotificationCenterDelegate: NSObject, UNUserNotificationCenterDelegate {
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse) async {
func userNotificationCenter(_: UNUserNotificationCenter, didReceive response: UNNotificationResponse) async {
guard response.actionIdentifier == UNNotificationAction.Identifier.show,
let string: String = response.notification.request.content.userInfo["URL"] as? String else {
return

View file

@ -10,11 +10,11 @@ import SwiftUI
struct PathControl: NSViewRepresentable {
@Binding var path: String
func makeNSView(context: Context) -> NSPathControl {
func makeNSView(context _: Context) -> NSPathControl {
NSPathControl()
}
func updateNSView(_ nsView: NSPathControl, context: Context) {
func updateNSView(_ nsView: NSPathControl, context _: Context) {
nsView.url = URL(fileURLWithPath: path)
}
}