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
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (Torrent *) torrent
|
- (Torrent *) torrent
|
||||||
|
|||||||
@@ -151,8 +151,6 @@
|
|||||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||||
|
|
||||||
[fTimer invalidate];
|
[fTimer invalidate];
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (Torrent *) torrent
|
- (Torrent *) torrent
|
||||||
|
|||||||
@@ -197,13 +197,10 @@ NSMutableSet *creatorWindowControllerSet = nil;
|
|||||||
|
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
if (fInfo)
|
if (fInfo)
|
||||||
tr_metaInfoBuilderFree(fInfo);
|
tr_metaInfoBuilderFree(fInfo);
|
||||||
|
|
||||||
[fTimer invalidate];
|
[fTimer invalidate];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (void) restoreWindowWithIdentifier: (NSString *) identifier state: (NSCoder *) state completionHandler: (void (^)(NSWindow *, NSError *)) completionHandler
|
+ (void) restoreWindowWithIdentifier: (NSString *) identifier state: (NSCoder *) state completionHandler: (void (^)(NSWindow *, NSError *)) completionHandler
|
||||||
|
|||||||
@@ -75,8 +75,6 @@
|
|||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setTorrents: (NSArray *) files
|
- (void) setTorrents: (NSArray *) files
|
||||||
|
|||||||
@@ -125,7 +125,6 @@
|
|||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setFilter: (id) sender
|
- (void) setFilter: (id) sender
|
||||||
|
|||||||
@@ -100,8 +100,6 @@
|
|||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setInfoForTorrents: (NSArray *) torrents
|
- (void) setInfoForTorrents: (NSArray *) torrents
|
||||||
|
|||||||
@@ -65,8 +65,6 @@
|
|||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setInfoForTorrents: (NSArray *) torrents
|
- (void) setInfoForTorrents: (NSArray *) torrents
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setControlView: (NSView *) controlView
|
- (void) setControlView: (NSView *) controlView
|
||||||
|
|||||||
@@ -139,9 +139,6 @@ typedef enum
|
|||||||
|
|
||||||
if ([fViewController respondsToSelector: @selector(saveViewSize)])
|
if ([fViewController respondsToSelector: @selector(saveViewSize)])
|
||||||
[fViewController saveViewSize];
|
[fViewController saveViewSize];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setInfoForTorrents: (NSArray *) torrents
|
- (void) setInfoForTorrents: (NSArray *) torrents
|
||||||
|
|||||||
@@ -139,11 +139,7 @@
|
|||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||||
|
|
||||||
[fTimer invalidate];
|
[fTimer invalidate];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) windowDidBecomeKey: (NSNotification *) notification
|
- (void) windowDidBecomeKey: (NSNotification *) notification
|
||||||
|
|||||||
@@ -56,8 +56,6 @@ enum
|
|||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
tr_free(fPieces);
|
tr_free(fPieces);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setTorrent: (Torrent *) torrent
|
- (void) setTorrent: (Torrent *) torrent
|
||||||
|
|||||||
@@ -54,7 +54,6 @@
|
|||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
[fTimer invalidate];
|
[fTimer invalidate];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (port_status_t) status
|
- (port_status_t) status
|
||||||
|
|||||||
@@ -151,9 +151,6 @@
|
|||||||
{
|
{
|
||||||
[fPortChecker cancelProbe];
|
[fPortChecker cancelProbe];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) awakeFromNib
|
- (void) awakeFromNib
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ tr_session * fLib = NULL;
|
|||||||
{
|
{
|
||||||
[fTimer invalidate];
|
[fTimer invalidate];
|
||||||
fTimer = nil;
|
fTimer = nil;
|
||||||
|
fStatsWindowInstance = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (void) restoreWindowWithIdentifier: (NSString *) identifier state: (NSCoder *) state completionHandler: (void (^)(NSWindow *, NSError *)) completionHandler
|
+ (void) restoreWindowWithIdentifier: (NSString *) identifier state: (NSCoder *) state completionHandler: (void (^)(NSWindow *, NSError *)) completionHandler
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ typedef enum
|
|||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) updateWithDownload: (CGFloat) dlRate upload: (CGFloat) ulRate
|
- (void) updateWithDownload: (CGFloat) dlRate upload: (CGFloat) ulRate
|
||||||
|
|||||||
@@ -239,11 +239,6 @@ bool trashDataFile(const char * filename, tr_error ** error)
|
|||||||
|
|
||||||
if (fFileStat)
|
if (fFileStat)
|
||||||
tr_torrentFilesFree(fFileStat, [self fileCount]);
|
tr_torrentFilesFree(fFileStat, [self fileCount]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *) description
|
- (NSString *) description
|
||||||
|
|||||||
@@ -85,11 +85,6 @@
|
|||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) awakeFromNib
|
- (void) awakeFromNib
|
||||||
|
|||||||
@@ -145,7 +145,6 @@ NSString * VDKQueueAccessRevocationNotification = @"VDKQueueAccessWasRevokedNoti
|
|||||||
[self removeAllPaths];
|
[self removeAllPaths];
|
||||||
|
|
||||||
_watchedPathEntries = nil;
|
_watchedPathEntries = nil;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user