summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/private/SDLVoiceCommandUpdateOperation.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/private/SDLVoiceCommandUpdateOperation.m')
-rw-r--r--SmartDeviceLink/private/SDLVoiceCommandUpdateOperation.m15
1 files changed, 0 insertions, 15 deletions
diff --git a/SmartDeviceLink/private/SDLVoiceCommandUpdateOperation.m b/SmartDeviceLink/private/SDLVoiceCommandUpdateOperation.m
index 16b3a8fdb..184615d63 100644
--- a/SmartDeviceLink/private/SDLVoiceCommandUpdateOperation.m
+++ b/SmartDeviceLink/private/SDLVoiceCommandUpdateOperation.m
@@ -57,21 +57,6 @@ NS_ASSUME_NONNULL_BEGIN
}
__weak typeof(self) weakSelf = self;
-
- // Evaluate the pendingVoiceCommands to check if there is two or more voiceCommands with the same string
- NSMutableSet<NSString *> *voiceCommandSets = [[NSMutableSet alloc] init];
- for (SDLVoiceCommand *voiceCommand in weakSelf.pendingVoiceCommands) {
- for (NSString *voiceCommandString in voiceCommand.voiceCommands) {
- if ([voiceCommandSets containsObject:voiceCommandString]) {
- SDLLogE(@"Failed to upload voice commands for having duplicate strings in different voiceCommands %@", nil);
- [weakSelf finishOperation];
- return;
- } else {
- [voiceCommandSets addObject:voiceCommandString];
- }
- }
- }
-
[self sdl_sendDeleteCurrentVoiceCommands:^{
// If the operation has been canceled, then don't send the new commands and finish the operation
if (self.isCancelled) {