mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
remove another warning
This commit is contained in:
parent
3c73a86595
commit
ee634ce23d
2 changed files with 2 additions and 11 deletions
|
@ -234,8 +234,6 @@
|
|||
|
||||
- (void) prepareForUpdate: (NSNotification *) notification;
|
||||
|
||||
- (NSString *) applicationSupportFolder;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
|
|
@ -307,8 +307,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
NSLog(@"Could not IORegisterForSystemPower");
|
||||
|
||||
//load previous transfers
|
||||
NSArray * history = [[NSArray alloc] initWithContentsOfFile: [[self applicationSupportFolder]
|
||||
stringByAppendingPathComponent: @"Transfers.plist"]];
|
||||
NSArray * history = [[NSArray alloc] initWithContentsOfFile:
|
||||
[NSHomeDirectory() stringByAppendingPathComponent: @"/Library/Application Support/Transmission/Transfers.plist"]];
|
||||
|
||||
//old version saved transfer info in prefs file
|
||||
if (!history)
|
||||
|
@ -3291,13 +3291,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
[[NSWorkspace sharedWorkspace] selectFile: location inFileViewerRootedAtPath: nil];
|
||||
}
|
||||
|
||||
#warning move to additions
|
||||
- (NSString *) applicationSupportFolder
|
||||
{
|
||||
return [[NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES) objectAtIndex: 0]
|
||||
stringByAppendingPathComponent: [[NSProcessInfo processInfo] processName]];
|
||||
}
|
||||
|
||||
- (void) ipcQuit
|
||||
{
|
||||
fRemoteQuit = YES;
|
||||
|
|
Loading…
Reference in a new issue