mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-09 16:15:45 +00:00
Remove unecessary code
This commit is contained in:
parent
944f21f47c
commit
4a30099480
@ -102,17 +102,6 @@ public:
|
||||
|
||||
|
||||
|
||||
// store some variables that are needed (since obj-c++ does not allow having obj-c classes as c++ members)
|
||||
namespace {
|
||||
|
||||
NSString * NSStringFromQString(QString qstr) {
|
||||
return qstr.toNSString();
|
||||
}
|
||||
QString QStringFromNSString(NSString * str) {
|
||||
return QString::fromNSString(str);
|
||||
}
|
||||
}
|
||||
|
||||
static UserNotificationItemClass * delegate = 0;
|
||||
|
||||
OSXNotificationCenter::OSXNotificationCenter()
|
||||
@ -136,7 +125,7 @@ void OSXNotificationCenter::slotNotify(Snore::Notification notification)
|
||||
NSString * notificationId = [NSString stringWithFormat:@"%d",notification.id()];
|
||||
osxNotification.title = notification.title().toNSString();
|
||||
osxNotification.userInfo = [NSDictionary dictionaryWithObjectsAndKeys:notificationId, @"id", nil];
|
||||
osxNotification.informativeText = NSStringFromQString(notification.text());
|
||||
osxNotification.informativeText = notification.text().toNSString();
|
||||
|
||||
// Add notification to mapper from id to Nofification / NSUserNotification
|
||||
m_IdToNotification.insert(notification.id(), notification);
|
||||
|
Loading…
x
Reference in New Issue
Block a user