summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/private/SDLVoiceCommandUpdateOperation.m
diff options
context:
space:
mode:
authorFrank Elias <francois.elias@livio.io>2021-04-07 16:28:35 -0400
committerFrank Elias <francois.elias@livio.io>2021-04-07 16:28:35 -0400
commitfcc2f71b91061182fdcd8bec67253dba138e4b3c (patch)
treeb4ae56927ac73550bcab8a413307afcd6ff2ccd2 /SmartDeviceLink/private/SDLVoiceCommandUpdateOperation.m
parent63faa70eab11144060a7b1857e7c071e7e5a7fe5 (diff)
downloadsdl_ios-fcc2f71b91061182fdcd8bec67253dba138e4b3c.tar.gz
Comments review
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) {