Skip to content

Commit 1c91354

Browse files
committed
Remove superfluous implementation
1 parent b0f880e commit 1c91354

File tree

5 files changed

+0
-33
lines changed

5 files changed

+0
-33
lines changed

Classes/Manager/FLEXManager+Extensibility.h

-5
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ NS_ASSUME_NONNULL_BEGIN
7373
action:(dispatch_block_t)action
7474
description:(NSString *)description;
7575

76-
#if TARGET_OS_MACCATALYST || TARGET_CPU_ARM64
77-
/// Gets the default and custom keyboard shortcuts commands.
78-
- (NSArray<UIKeyCommand *> *)getKeyCommands;
79-
#endif
80-
8176
@end
8277

8378
NS_ASSUME_NONNULL_END

Classes/Manager/FLEXManager+Extensibility.m

-8
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,6 @@ - (BOOL)simulatorShortcutsEnabled {
9797
#endif
9898
}
9999

100-
#if TARGET_OS_MACCATALYST || TARGET_CPU_ARM64
101-
102-
- (NSArray<UIKeyCommand *> *)getKeyCommands {
103-
return [FLEXKeyboardShortcutManager.sharedManager getKeyCommands];
104-
}
105-
106-
#endif
107-
108100

109101
#pragma mark - Shortcuts Defaults
110102

Classes/Utility/Keyboard/FLEXKeyboardShortcutManager.h

-4
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,4 @@
2626
@property (nonatomic, getter=isEnabled) BOOL enabled;
2727
@property (nonatomic, readonly) NSString *keyboardShortcutsDescription;
2828

29-
#if TARGET_OS_MACCATALYST || TARGET_CPU_ARM64
30-
- (NSArray<UIKeyCommand *> *)getKeyCommands;
31-
#endif
32-
3329
@end

Classes/Utility/Keyboard/FLEXKeyboardShortcutManager.m

-10
Original file line numberDiff line numberDiff line change
@@ -321,16 +321,6 @@ - (NSString *)keyboardShortcutsDescription {
321321
return [description copy];
322322
}
323323

324-
#if TARGET_OS_MACCATALYST || TARGET_CPU_ARM64
325-
326-
- (NSArray<UIKeyCommand *> *)getKeyCommands {
327-
return [self.actionsForKeyInputs.allKeys flex_mapped:^UIKeyCommand *(FLEXKeyInput *keyInput, NSUInteger index) {
328-
return [UIKeyCommand keyCommandWithInput:keyInput.key modifierFlags:keyInput.flags action:nil];
329-
}];
330-
}
331-
332-
#endif
333-
334324
@end
335325

336326
#endif

Example/FLEXample/AppDelegate.swift

-6
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
7777
).write(to: URL(fileURLWithPath: whereToSaveBob), options: [])
7878
}
7979

80-
#if targetEnvironment(macCatalyst) || arch(arm64)
81-
override var keyCommands: [UIKeyCommand]? {
82-
return FLEXManager.shared.getKeyCommands()
83-
}
84-
#endif
85-
8680
let exampleLogLimit = 10
8781
var exampleLogSent = 0
8882
}

0 commit comments

Comments
 (0)