aboutsummaryrefslogtreecommitdiff
path: root/src/qt/macnotificationhandler.mm
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2017-09-07 10:11:44 -0700
committerJonas Schnelli <dev@jonasschnelli.ch>2017-09-07 10:11:44 -0700
commitf151f5f50f05727cfd3445d8f678a8a2ac6c8409 (patch)
tree239a483f3438367024768a3dfd23d6f7100f1363 /src/qt/macnotificationhandler.mm
parenta3624ddb1a3b4a1ced39dfe75b1bcbb52de4fbb0 (diff)
[macOS] remove Growl support, remove unused code
Diffstat (limited to 'src/qt/macnotificationhandler.mm')
-rw-r--r--src/qt/macnotificationhandler.mm14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/qt/macnotificationhandler.mm b/src/qt/macnotificationhandler.mm
index 4c96d08c8a..1b16c5f524 100644
--- a/src/qt/macnotificationhandler.mm
+++ b/src/qt/macnotificationhandler.mm
@@ -47,20 +47,6 @@ void MacNotificationHandler::showNotification(const QString &title, const QStrin
}
}
-// sendAppleScript just take a QString and executes it as apple script
-void MacNotificationHandler::sendAppleScript(const QString &script)
-{
- QByteArray utf8 = script.toUtf8();
- char* cString = (char *)utf8.constData();
- NSString *scriptApple = [[NSString alloc] initWithUTF8String:cString];
-
- NSAppleScript *as = [[NSAppleScript alloc] initWithSource:scriptApple];
- NSDictionary *err = nil;
- [as executeAndReturnError:&err];
- [as release];
- [scriptApple release];
-}
-
bool MacNotificationHandler::hasUserNotificationCenterSupport(void)
{
Class possibleClass = NSClassFromString(@"NSUserNotificationCenter");