Notifications Protocol cleanup.

This commit is contained in:
Frederic Jacobs 2015-12-22 22:43:08 +01:00
parent 5d91a5bd4f
commit 8d6ce0b57c
2 changed files with 2 additions and 12 deletions

View File

@ -8,7 +8,6 @@
#import "TSMessagesManager.h"
#import <AudioToolbox/AudioToolbox.h>
#import <AxolotlKit/AxolotlExceptions.h>
#import <AxolotlKit/SessionCipher.h>
#import <TextSecureKit/TSAccountManager.h>
@ -26,8 +25,6 @@
@interface TSMessagesManager ()
@property SystemSoundID newMessageSound;
@end
@implementation TSMessagesManager
@ -46,9 +43,6 @@
if (self) {
_dbConnection = [TSStorageManager sharedManager].newDatabaseConnection;
NSURL *newMessageSound =
[NSURL URLWithString:[[NSBundle mainBundle] pathForResource:@"NewMessage" ofType:@"aifc"]];
AudioServicesCreateSystemSoundID((__bridge CFURLRef)newMessageSound, &_newMessageSound);
}
return self;
@ -453,8 +447,4 @@
return numberOfItems;
}
- (void)dealloc {
AudioServicesDisposeSystemSoundID(_newMessageSound);
}
@end

View File

@ -14,10 +14,10 @@
@protocol NotificationsProtocol <NSObject>
+ (void)notifyUserForIncomingMessage:(TSIncomingMessage *)incomingMessage
- (void)notifyUserForIncomingMessage:(TSIncomingMessage *)incomingMessage
from:(NSString *)name
inThread:(TSThread *)thread;
+ (void)notifyUserForErrorMessage:(TSErrorMessage *)error inThread:(TSThread *)thread;
- (void)notifyUserForErrorMessage:(TSErrorMessage *)error inThread:(TSThread *)thread;
@end