project_files/HedgewarsMobile/Classes/CommodityFunctions.m
changeset 6000 dbcebcd3d79f
parent 5994 3c578f531cc1
--- a/project_files/HedgewarsMobile/Classes/CommodityFunctions.m	Fri Sep 23 22:42:30 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/CommodityFunctions.m	Sat Sep 24 00:54:47 2011 +0200
@@ -25,7 +25,6 @@
 #import <mach/mach.h>
 #import <mach/mach_host.h>
 #import <QuartzCore/QuartzCore.h>
-#import <AudioToolbox/AudioToolbox.h>
 #import <CommonCrypto/CommonDigest.h>
 #import <SystemConfiguration/SCNetworkReachability.h>
 #import <netinet/in.h>
@@ -76,21 +75,6 @@
     return modelId;
 }
 
-void playSound (NSString *snd) {
-    if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"sound"] boolValue] == YES) {
-        // get the filename of the sound file:
-        NSString *path = [NSString stringWithFormat:@"%@/%@.wav",[[NSBundle mainBundle] resourcePath],snd];
-
-        // declare a system sound id and get a URL for the sound file
-        SystemSoundID soundID;
-        NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO];
-
-        // use audio sevices to create and play the sound
-        AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID);
-        AudioServicesPlaySystemSound(soundID);
-    }
-}
-
 NSArray *getAvailableColors (void) {
     // by default colors are ARGB but we do computation over RGB, hence we have to "& 0x00FFFFFF" before processing
     unsigned int colors[] = HW_TEAMCOLOR_ARRAY;