Remove unnecessary wrapper.
authorJan Schneider <jan@horde.org>
Wed, 11 Aug 2010 10:25:44 +0000 (12:25 +0200)
committerJan Schneider <jan@horde.org>
Wed, 11 Aug 2010 15:34:55 +0000 (17:34 +0200)
kronolith/lib/Driver/Sql.php

index b626416..4a7c486 100644 (file)
@@ -595,7 +595,7 @@ class Kronolith_Driver_Sql extends Kronolith_Driver
             }
 
             /* Notify users about the changed event. */
-            $this->_handleNotifications($event, 'edit');
+            Kronolith::sendNotification($event, 'edit');
 
             return $event->id;
         }
@@ -653,7 +653,7 @@ class Kronolith_Driver_Sql extends Kronolith_Driver
         }
 
         /* Notify users about the new event. */
-        $this->_handleNotifications($event, 'add');
+        Kronolith::sendNotification($event, 'add');
 
         return $id;
     }
@@ -699,11 +699,6 @@ class Kronolith_Driver_Sql extends Kronolith_Driver
         $tagger->tag($event->uid, $event->tags, $cal->get('owner'), 'event');
     }
 
-    protected function _handleNotifications($event, $action)
-    {
-        Kronolith::sendNotification($event, $action);
-    }
-
     /**
      * Moves an event to a new calendar.
      *
@@ -818,7 +813,7 @@ class Kronolith_Driver_Sql extends Kronolith_Driver
 
         /* Notify about the deleted event. */
         if (!$silent) {
-            $this->_handleNotifications($event, 'delete');
+            Kronolith::sendNotification($event, 'delete');
         }
 
         /* See if this event represents an exception - if so, touch the base