diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/Console/MWMConsole.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/Console/MWMConsole.mm index 4878b5ee01..62a9d2dc5c 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/Console/MWMConsole.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/Console/MWMConsole.mm @@ -3,9 +3,6 @@ #include "Framework.h" -extern NSString * const kMwmTextToSpeechEnable; -extern NSString * const kMwmTextToSpeechDisable; - @implementation MWMConsole + (BOOL)performCommand:(NSString *)cmd @@ -13,9 +10,6 @@ extern NSString * const kMwmTextToSpeechDisable; if ([self performMapStyle:cmd]) return YES; - if ([self performSound:cmd]) - return YES; - return NO; } @@ -35,21 +29,4 @@ extern NSString * const kMwmTextToSpeechDisable; return YES; } -+ (BOOL)performSound:(NSString *)cmd -{ - // Hook for shell command on change map style - BOOL const sound = [cmd isEqualToString:@"?sound"]; - BOOL const nosound = sound ? NO : [cmd isEqualToString:@"?nosound"]; - - if (!sound && !nosound) - return NO; - - if (sound) - [[NSNotificationCenter defaultCenter] postNotificationName:kMwmTextToSpeechEnable object:nil]; - if (nosound) - [[NSNotificationCenter defaultCenter] postNotificationName:kMwmTextToSpeechDisable object:nil]; - - return YES; -} - @end