[Pkg-owncloud-commits] [php-sabre-vobject] 08/43: Unused code.

David Prévot taffit at moszumanska.debian.org
Sat Jan 10 14:20:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit 8885ebb2f4636ee4b4edeaa39db86a790527553b
Author: Evert Pot <me at evertpot.com>
Date:   Thu Dec 11 14:38:27 2014 -0500

    Unused code.
---
 lib/Recur/EventIterator.php | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/lib/Recur/EventIterator.php b/lib/Recur/EventIterator.php
index 8743f5a..4f69f1c 100644
--- a/lib/Recur/EventIterator.php
+++ b/lib/Recur/EventIterator.php
@@ -88,7 +88,6 @@ class EventIterator implements \Iterator {
         }
         $this->timeZone = $timeZone;
 
-        $rrule = null;
         if ($vcal instanceof VEvent) {
             // Single instance mode.
             $events = array($vcal);
@@ -139,17 +138,6 @@ class EventIterator implements \Iterator {
             $this->masterEvent = array_shift($this->overriddenEvents);
         }
 
-        // master event.
-        if (isset($this->masterEvent->RRULE)) {
-            $rrule = $this->masterEvent->RRULE->getParts();
-        } else {
-            // master event has no rrule. We default to something that
-            // iterates once.
-            $rrule = array(
-                'FREQ' => 'DAILY',
-                'COUNT' => 1,
-            );
-        }
         $this->startDate = $this->masterEvent->DTSTART->getDateTime($this->timeZone);
         $this->allDay = !$this->masterEvent->DTSTART->hasTime();
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list