Cocoa Port: Do some minor code cleanup.

This commit is contained in:
rogerman 2018-02-05 20:29:09 -08:00
parent d1dcbb8218
commit 9e3b694ace
7 changed files with 7 additions and 39 deletions

View File

@ -1,6 +1,6 @@
/*
Copyright (C) 2011 Roger Manuel
Copyright (C) 2012-2017 DeSmuME team
Copyright (C) 2012-2018 DeSmuME team
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -48,7 +48,7 @@ static NSImage *iconCodeBreaker = nil;
@synthesize workingCopy;
@synthesize parent;
- (id) init
- (id)init
{
return [self initWithCheatData:nil];
}

View File

@ -72,9 +72,7 @@
@property (assign) NSUInteger bufferSize;
- (id) init;
- (id) initWithVolume:(CGFloat)vol;
- (void) dealloc;
- (void) setVolume:(float)vol;
- (float) volume;

View File

@ -210,11 +210,6 @@
return self;
}
- (void)dealloc
{
[super dealloc];
}
- (void) setIdle:(BOOL)theState
{
if (theState)
@ -509,11 +504,6 @@
return self;
}
- (void)dealloc
{
[super dealloc];
}
- (void) handleSignalMessageID:(int32_t)messageID
{
switch (messageID)
@ -608,11 +598,6 @@
return self;
}
- (void)dealloc
{
[super dealloc];
}
- (void) commitPresenterProperties:(const ClientDisplayPresenterProperties &)viewProps
{
OSSpinLockLock(&spinlockViewProperties);

View File

@ -1,5 +1,5 @@
/*
Copyright (C) 2014-2015 DeSmuME Team
Copyright (C) 2014-2018 DeSmuME Team
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -43,11 +43,6 @@
return self;
}
- (void) dealloc
{
[super dealloc];
}
- (NSString *) name
{
const char *cDeviceName = device->info()->name();
@ -88,7 +83,7 @@
@dynamic gbaSRamURL;
@dynamic doesGbaCartridgeSaveExist;
- (id) init
- (id)init
{
self = [super init];
if (self == nil)

View File

@ -97,7 +97,7 @@
@synthesize windowList;
-(id)init
- (id)init
{
self = [super init];
if(self == nil)

View File

@ -1,5 +1,5 @@
/*
Copyright (C) 2013 DeSmuME team
Copyright (C) 2013-2018 DeSmuME team
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -36,11 +36,6 @@
return self;
}
- (void)dealloc
{
[super dealloc];
}
- (NSString *) commandTagFromInputList:(NSArray *)inputList
{
NSDictionary *mappings = [(NSDictionary *)[self content] valueForKey:@"Mappings"];

View File

@ -1,5 +1,5 @@
/*
Copyright (C) 2012-2017 DeSmuME team
Copyright (C) 2012-2018 DeSmuME team
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -57,11 +57,6 @@
return self;
}
- (void)dealloc
{
[super dealloc];
}
- (IBAction) copyRomInfoToTextFields:(id)sender
{
NSMutableDictionary *romInfoBindings = (NSMutableDictionary *)[romInfoController content];