Remove leftover dealloc empty lines, nullify StatsWindowController instance on close

This commit is contained in:
Dmitry Serov
2017-08-01 17:57:27 +07:00
parent 3ae8f41f71
commit 18e33c5cdb
18 changed files with 1 additions and 40 deletions

View File

@@ -164,8 +164,6 @@
- (void) dealloc - (void) dealloc
{ {
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self];
} }
- (Torrent *) torrent - (Torrent *) torrent

View File

@@ -151,8 +151,6 @@
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self];
[fTimer invalidate]; [fTimer invalidate];
} }
- (Torrent *) torrent - (Torrent *) torrent

View File

@@ -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

View File

@@ -75,8 +75,6 @@
- (void) dealloc - (void) dealloc
{ {
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self];
} }
- (void) setTorrents: (NSArray *) files - (void) setTorrents: (NSArray *) files

View File

@@ -125,7 +125,6 @@
- (void) dealloc - (void) dealloc
{ {
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self];
} }
- (void) setFilter: (id) sender - (void) setFilter: (id) sender

View File

@@ -100,8 +100,6 @@
- (void) dealloc - (void) dealloc
{ {
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self];
} }
- (void) setInfoForTorrents: (NSArray *) torrents - (void) setInfoForTorrents: (NSArray *) torrents

View File

@@ -65,8 +65,6 @@
- (void) dealloc - (void) dealloc
{ {
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self];
} }
- (void) setInfoForTorrents: (NSArray *) torrents - (void) setInfoForTorrents: (NSArray *) torrents

View File

@@ -39,7 +39,6 @@
- (void) dealloc - (void) dealloc
{ {
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self];
} }
- (void) setControlView: (NSView *) controlView - (void) setControlView: (NSView *) controlView

View File

@@ -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

View File

@@ -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

View File

@@ -56,8 +56,6 @@ enum
- (void) dealloc - (void) dealloc
{ {
tr_free(fPieces); tr_free(fPieces);
} }
- (void) setTorrent: (Torrent *) torrent - (void) setTorrent: (Torrent *) torrent

View File

@@ -54,7 +54,6 @@
- (void) dealloc - (void) dealloc
{ {
[fTimer invalidate]; [fTimer invalidate];
} }
- (port_status_t) status - (port_status_t) status

View File

@@ -151,9 +151,6 @@
{ {
[fPortChecker cancelProbe]; [fPortChecker cancelProbe];
} }
} }
- (void) awakeFromNib - (void) awakeFromNib

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -85,11 +85,6 @@
- (void) dealloc - (void) dealloc
{ {
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self];
} }
- (void) awakeFromNib - (void) awakeFromNib

View File

@@ -145,7 +145,6 @@ NSString * VDKQueueAccessRevocationNotification = @"VDKQueueAccessWasRevokedNoti
[self removeAllPaths]; [self removeAllPaths];
_watchedPathEntries = nil; _watchedPathEntries = nil;
} }