Bug 691662 - Remove unnecessary condition which doesn't work with Growl 1.3. r=sdwilsh

This commit is contained in:
Markus Stange 2011-11-13 09:03:23 +01:00
Родитель 75eda8497d
Коммит 0050469939
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -92,8 +92,7 @@ DispatchNamedNotification(const nsAString &aName,
{ {
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT; NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
if ([GrowlApplicationBridge isGrowlInstalled] == NO || if ([GrowlApplicationBridge isGrowlRunning] == NO)
[GrowlApplicationBridge isGrowlRunning] == NO)
return NS_ERROR_NOT_AVAILABLE; return NS_ERROR_NOT_AVAILABLE;
mozGrowlDelegate *delegate = mozGrowlDelegate *delegate =
@ -146,9 +145,6 @@ nsAlertsService::Init()
{ {
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT; NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
if ([GrowlApplicationBridge isGrowlInstalled] == NO)
return NS_ERROR_SERVICE_NOT_AVAILABLE;
NS_ASSERTION([GrowlApplicationBridge growlDelegate] == nil, NS_ASSERTION([GrowlApplicationBridge growlDelegate] == nil,
"We already registered with Growl!"); "We already registered with Growl!");