From: Gunnar Beutner Date: Fri, 8 Mar 2013 13:43:28 +0000 (+0100) Subject: Remove redundant check for valid task object. X-Git-Tag: v0.0.2~320 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8337795ff714d04443a7666faa7916641021fca7;p=icinga2 Remove redundant check for valid task object. --- diff --git a/lib/icinga/notification.cpp b/lib/icinga/notification.cpp index 11d92ef3c..3fbcf9508 100644 --- a/lib/icinga/notification.cpp +++ b/lib/icinga/notification.cpp @@ -216,12 +216,6 @@ void Notification::BeginExecuteNotificationHelper(const Dictionary::Ptr& notific ScriptTask::Ptr task; task = MakeMethodTask("notify", arguments); - if (!task) { - Logger::Write(LogWarning, "icinga", "Notification object '" + GetName() + "' doesn't have a 'notify' method."); - - return; - } - { ObjectLock olock(this);