Skip to content

Commit fc52447

Browse files
committed
Remove unused labels in functions
1 parent bc0ccbb commit fc52447

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

App/Sources/Core/MachPort/MachPortCoordinator.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ final class MachPortCoordinator: @unchecked Sendable, ObservableObject, TapHeldC
244244
switch result {
245245
case .none:
246246
let partialMatchCopy = previousPartialMatch
247-
handleNoMatch(result, machPortEvent: machPortEvent)
247+
handleNoMatch(machPortEvent: machPortEvent)
248248

249249
if inMacroContext {
250250
macroCoordinator.record(eventSignature, kind: .event(machPortEvent), machPortEvent: machPortEvent)
@@ -404,7 +404,7 @@ final class MachPortCoordinator: @unchecked Sendable, ObservableObject, TapHeldC
404404
}
405405

406406
@MainActor
407-
private func handleNoMatch(_: KeyboardShortcutResult?, machPortEvent: MachPortEvent) {
407+
private func handleNoMatch(machPortEvent: MachPortEvent) {
408408
reset()
409409
repeatingMatch = false
410410
coordinatorEvent = machPortEvent.event
@@ -421,7 +421,7 @@ final class MachPortCoordinator: @unchecked Sendable, ObservableObject, TapHeldC
421421
recording = recordValidator.validate(machPortEvent, allowAllKeys: true)
422422
}
423423

424-
private func reset(_: StaticString = #function, line _: Int = #line) {
424+
private func reset() {
425425
previousPartialMatch = PartialMatch.default()
426426
notifications.reset()
427427
}

App/Sources/Core/Runners/Bundled/BundledCommandRunner.swift

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ actor BundledCommandRunner: Sendable {
4343
snapshot: &snapshot,
4444
machPortEvent: machPortEvent,
4545
checkCancellation: checkCancellation,
46-
repeatingEvent: repeatingEvent,
47-
runtimeDictionary: &runtimeDictionary)
46+
repeatingEvent: repeatingEvent)
4847
output = "Back to \(command.name)"
4948
} else {
5049
output = ""
@@ -74,8 +73,7 @@ actor BundledCommandRunner: Sendable {
7473
snapshot: &snapshot,
7574
machPortEvent: machPortEvent,
7675
checkCancellation: checkCancellation,
77-
repeatingEvent: repeatingEvent,
78-
runtimeDictionary: &runtimeDictionary)
76+
repeatingEvent: repeatingEvent)
7977

8078
if movedToWorkspace {
8179
if let runningApp = NSRunningApplication.runningApplications(withBundleIdentifier: application.bundleIdentifier).first {
@@ -138,8 +136,7 @@ actor BundledCommandRunner: Sendable {
138136
snapshot: &snapshot,
139137
machPortEvent: machPortEvent,
140138
checkCancellation: checkCancellation,
141-
repeatingEvent: repeatingEvent,
142-
runtimeDictionary: &runtimeDictionary)
139+
repeatingEvent: repeatingEvent)
143140
output = command.name
144141
case let .tidy(command):
145142
try await windowTidy.run(command)
@@ -154,8 +151,8 @@ actor BundledCommandRunner: Sendable {
154151
commandRunner: CommandRunner,
155152
snapshot: inout UserSpace.Snapshot,
156153
machPortEvent: MachPortEvent,
157-
checkCancellation: Bool, repeatingEvent: Bool,
158-
runtimeDictionary _: inout [String: String]) async throws
154+
_: Bool = false,
155+
checkCancellation: Bool, repeatingEvent: Bool) async throws
159156
{
160157
let applications = applicationStore.applications
161158
let dynamicApps = await DynamicWorkspace.shared

Tuist/ProjectDescriptionHelpers/Target+MainApp.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public extension Target {
5151
"CURRENT_PROJECT_VERSION": SettingValue(stringLiteral: buildNumber),
5252
"DEVELOPMENT_TEAM": env["TEAM_ID"],
5353
"ENABLE_HARDENED_RUNTIME": properties.hardendRuntime,
54-
"MARKETING_VERSION": "3.28.1",
54+
"MARKETING_VERSION": "3.28.2",
5555
"PRODUCT_NAME": "Keyboard Cowboy",
5656
"SWIFT_STRICT_CONCURRENCY": "complete",
5757
"SWIFT_VERSION": "6.0",

0 commit comments

Comments
 (0)