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
{
[[NSNotificationCenter defaultCenter] removeObserver: self];
}
- (Torrent *) torrent

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -139,9 +139,6 @@ typedef enum
if ([fViewController respondsToSelector: @selector(saveViewSize)])
[fViewController saveViewSize];
}
- (void) setInfoForTorrents: (NSArray *) torrents

View File

@ -139,11 +139,7 @@
- (void) dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver: self];
[fTimer invalidate];
}
- (void) windowDidBecomeKey: (NSNotification *) notification

View File

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

View File

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

View File

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

View File

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

View File

@ -89,7 +89,6 @@ typedef enum
- (void) dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver: self];
}
- (void) updateWithDownload: (CGFloat) dlRate upload: (CGFloat) ulRate

View File

@ -239,11 +239,6 @@ bool trashDataFile(const char * filename, tr_error ** error)
if (fFileStat)
tr_torrentFilesFree(fFileStat, [self fileCount]);
}
- (NSString *) description

View File

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

View File

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