aboutsummaryrefslogtreecommitdiff
path: root/src/qt/macnotificationhandler.mm
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-09-11 21:42:17 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2017-09-11 21:42:43 +0200
commit31e72b284ef54c4c221015c8d700946c6143fb7a (patch)
tree27c6298c9eafaffb58023b7a45bbeb845e067385 /src/qt/macnotificationhandler.mm
parent16e41844e7d6c5876d2caaeef6010656950c6ec5 (diff)
parentf151f5f50f05727cfd3445d8f678a8a2ac6c8409 (diff)
Merge #11268: [macOS] remove Growl support, remove unused code
f151f5f50 [macOS] remove Growl support, remove unused code (Jonas Schnelli) Pull request description: There is no longer a reason to support Growl. A) It went to pay-ware since a couple of years B) Since OSX 10.8, the operating system has its own modal notification options (Notification Center). This PR removes support for Growl. OSX notification centre is still supported after this PR. Tree-SHA512: eee18098d7354c4e98f927bca9963d4843ff6bceee74795f73a66c27eed33efaac00ec2cabde8807efcbc936b16ab712249006fa13f5a3f55e4d44d163f5f9a0
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");