[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx:[696] trunk/FuseImporter/ LibspectrumMetadata
Brought to you by:
fredm
From: <fr...@us...> - 2012-10-29 12:08:43
|
Revision: 696 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=696&view=rev Author: fredm Date: 2012-10-29 12:08:37 +0000 (Mon, 29 Oct 2012) Log Message: ----------- Remove some redundant NSString creation. Modified Paths: -------------- trunk/FuseImporter/LibspectrumMetadataImporter.m Modified: trunk/FuseImporter/LibspectrumMetadataImporter.m =================================================================== --- trunk/FuseImporter/LibspectrumMetadataImporter.m 2012-10-29 12:07:19 UTC (rev 695) +++ trunk/FuseImporter/LibspectrumMetadataImporter.m 2012-10-29 12:08:37 UTC (rev 696) @@ -113,15 +113,15 @@ libspectrum_machine_name(LIBSPECTRUM_MACHINE_PLUS3)]]; return; default: - [machines addObject:[NSString stringWithString:@"Unknown machine"]]; + [machines addObject:@"Unknown machine"]; return; } case 3: switch( id ) { case 0: - [peripherals addObject:[NSString stringWithString:@"AY-3-8192"]]; return; + [peripherals addObject:@"AY-3-8192"]; return; default: - [peripherals addObject:[NSString stringWithString:@"Unknown sound device"]]; + [peripherals addObject:@"Unknown sound device"]; return; } case 4: @@ -147,7 +147,7 @@ libspectrum_joystick_name(LIBSPECTRUM_JOYSTICK_FULLER)]]; return; default: - [peripherals addObject:[NSString stringWithString:@"Unknown joystick"]]; + [peripherals addObject:@"Unknown joystick"]; return; } default: NSLog(@"Unknown type"); return; @@ -440,28 +440,26 @@ /* FIXME: Other connected hardware? */ if( libspectrum_snap_zxatasp_active( snap ) ) { - [peripherals addObject:[NSString stringWithString:@"ZXATASP"]]; + [peripherals addObject:@"ZXATASP"]; } if( libspectrum_snap_zxcf_active( snap ) ) { - [peripherals addObject:[NSString stringWithString:@"ZXCF"]]; + [peripherals addObject:@"ZXCF"]; } if( libspectrum_snap_interface1_active( snap ) ) { - [peripherals addObject: - [NSString stringWithString:@"Interface I"]]; + [peripherals addObject:@"Interface I"]; } if( libspectrum_snap_interface2_active( snap ) ) { - [peripherals addObject: - [NSString stringWithString:@"Interface II Cartridge"]]; + [peripherals addObject:@"Interface II Cartridge"]; } if( libspectrum_snap_dock_active( snap ) && libspectrum_snap_machine(snap) != LIBSPECTRUM_MACHINE_SE ) { - [peripherals addObject:[NSString stringWithString:@"Timex Dock Cartidge"]]; + [peripherals addObject:@"Timex Dock Cartidge"]; } if( libspectrum_snap_beta_active( snap ) ) { - [peripherals addObject:[NSString stringWithString:@"Beta Disk"]]; + [peripherals addObject:@"Beta Disk"]; } if( libspectrum_snap_plusd_active( snap ) ) { - [peripherals addObject:[NSString stringWithString:@"+D Disk"]]; + [peripherals addObject:@"+D Disk"]; } if( [peripherals count] ) { @@ -546,15 +544,15 @@ switch( length ) { case HICOLOUR_SCR_SIZE: - mode = [NSString stringWithString:@"HiColour"]; + mode = @"HiColour"; width = 256; break; case STANDARD_SCR_SIZE: - mode = [NSString stringWithString:@"Standard"]; + mode = @"Standard"; width = 256; break; case HIRES_SCR_SIZE: - mode = [NSString stringWithString:@"HiRes"]; + mode = @"HiRes"; width = 512; break; default: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |