mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
Remove leftover dealloc empty lines, nullify StatsWindowController instance on close
This commit is contained in:
@@ -164,8 +164,6 @@
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (Torrent *) torrent
|
||||
|
||||
@@ -151,8 +151,6 @@
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
[fTimer invalidate];
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (Torrent *) torrent
|
||||
|
||||
@@ -197,13 +197,10 @@ NSMutableSet *creatorWindowControllerSet = nil;
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
|
||||
|
||||
if (fInfo)
|
||||
tr_metaInfoBuilderFree(fInfo);
|
||||
|
||||
[fTimer invalidate];
|
||||
|
||||
}
|
||||
|
||||
+ (void) restoreWindowWithIdentifier: (NSString *) identifier state: (NSCoder *) state completionHandler: (void (^)(NSWindow *, NSError *)) completionHandler
|
||||
|
||||
@@ -75,8 +75,6 @@
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (void) setTorrents: (NSArray *) files
|
||||
|
||||
@@ -125,7 +125,6 @@
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
}
|
||||
|
||||
- (void) setFilter: (id) sender
|
||||
|
||||
@@ -100,8 +100,6 @@
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (void) setInfoForTorrents: (NSArray *) torrents
|
||||
|
||||
@@ -65,8 +65,6 @@
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (void) setInfoForTorrents: (NSArray *) torrents
|
||||
|
||||
@@ -39,7 +39,6 @@
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
}
|
||||
|
||||
- (void) setControlView: (NSView *) controlView
|
||||
|
||||
@@ -139,9 +139,6 @@ typedef enum
|
||||
|
||||
if ([fViewController respondsToSelector: @selector(saveViewSize)])
|
||||
[fViewController saveViewSize];
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (void) setInfoForTorrents: (NSArray *) torrents
|
||||
|
||||
@@ -139,11 +139,7 @@
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
[fTimer invalidate];
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (void) windowDidBecomeKey: (NSNotification *) notification
|
||||
|
||||
@@ -56,8 +56,6 @@ enum
|
||||
- (void) dealloc
|
||||
{
|
||||
tr_free(fPieces);
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (void) setTorrent: (Torrent *) torrent
|
||||
|
||||
@@ -54,7 +54,6 @@
|
||||
- (void) dealloc
|
||||
{
|
||||
[fTimer invalidate];
|
||||
|
||||
}
|
||||
|
||||
- (port_status_t) status
|
||||
|
||||
@@ -151,9 +151,6 @@
|
||||
{
|
||||
[fPortChecker cancelProbe];
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (void) awakeFromNib
|
||||
|
||||
@@ -118,6 +118,7 @@ tr_session * fLib = NULL;
|
||||
{
|
||||
[fTimer invalidate];
|
||||
fTimer = nil;
|
||||
fStatsWindowInstance = nil;
|
||||
}
|
||||
|
||||
+ (void) restoreWindowWithIdentifier: (NSString *) identifier state: (NSCoder *) state completionHandler: (void (^)(NSWindow *, NSError *)) completionHandler
|
||||
|
||||
@@ -89,7 +89,6 @@ typedef enum
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
}
|
||||
|
||||
- (void) updateWithDownload: (CGFloat) dlRate upload: (CGFloat) ulRate
|
||||
|
||||
@@ -239,11 +239,6 @@ bool trashDataFile(const char * filename, tr_error ** error)
|
||||
|
||||
if (fFileStat)
|
||||
tr_torrentFilesFree(fFileStat, [self fileCount]);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (NSString *) description
|
||||
|
||||
@@ -85,11 +85,6 @@
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
- (void) awakeFromNib
|
||||
|
||||
@@ -145,7 +145,6 @@ NSString * VDKQueueAccessRevocationNotification = @"VDKQueueAccessWasRevokedNoti
|
||||
[self removeAllPaths];
|
||||
|
||||
_watchedPathEntries = nil;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user