[Pkg-owncloud-commits] [php-sabre-vobject] 07/16: Remove some useless variables and assignments

David Prévot taffit at moszumanska.debian.org
Tue Jan 5 03:10:28 UTC 2016


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 0358cace582486614503bdd125d156152e032597
Author: Jakob Sack <mail at jakobsack.de>
Date:   Thu Dec 24 15:24:47 2015 +0100

    Remove some useless variables and assignments
---
 lib/Property/VCard/DateAndOrTime.php           |  3 ---
 tests/VObject/CliTest.php                      |  2 --
 tests/VObject/ITip/BrokerAttendeeReplyTest.php | 35 ++++++++++++--------------
 3 files changed, 16 insertions(+), 24 deletions(-)

diff --git a/lib/Property/VCard/DateAndOrTime.php b/lib/Property/VCard/DateAndOrTime.php
index f188a2e..202f913 100644
--- a/lib/Property/VCard/DateAndOrTime.php
+++ b/lib/Property/VCard/DateAndOrTime.php
@@ -94,9 +94,6 @@ class DateAndOrTime extends Property {
      */
     function setDateTime(DateTimeInterface $dt) {
 
-        $tz = null;
-        $isUtc = false;
-
         $tz = $dt->getTimeZone();
         $isUtc = in_array($tz->getName(), ['UTC', 'GMT', 'Z']);
 
diff --git a/tests/VObject/CliTest.php b/tests/VObject/CliTest.php
index 723b93b..6703787 100644
--- a/tests/VObject/CliTest.php
+++ b/tests/VObject/CliTest.php
@@ -177,7 +177,6 @@ ICS
         );
 
         rewind($this->cli->stdout);
-        $version = Version::VERSION;
 
         // PHP 5.5.12 changed the output
 
@@ -280,7 +279,6 @@ VCF;
 
     function testConvertDefaultFormats() {
 
-        $inputStream = fopen('php://memory', 'r+');
         $outputFile = SABRE_TEMPDIR . 'bar.json';
 
         $this->assertEquals(
diff --git a/tests/VObject/ITip/BrokerAttendeeReplyTest.php b/tests/VObject/ITip/BrokerAttendeeReplyTest.php
index e8c6acb..9519ed3 100644
--- a/tests/VObject/ITip/BrokerAttendeeReplyTest.php
+++ b/tests/VObject/ITip/BrokerAttendeeReplyTest.php
@@ -68,7 +68,7 @@ ICS
 
         ];
 
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -218,7 +218,7 @@ ICS
 
         ];
 
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -361,7 +361,7 @@ ICS
 
         ];
 
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -396,7 +396,7 @@ ICS;
 
 
         $expected = [];
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -458,7 +458,7 @@ ICS
             ]
 
         ];
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -492,7 +492,7 @@ END:VCALENDAR
 ICS;
 
         $expected = [];
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -566,7 +566,7 @@ ICS
 
             ],
         ];
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -638,7 +638,7 @@ ICS
 
             ],
         ];
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -710,7 +710,7 @@ ICS
 
             ],
         ];
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -775,7 +775,7 @@ ICS
 
         ];
 
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -814,7 +814,7 @@ ICS;
 
         $expected = [];
 
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -868,10 +868,9 @@ END:VEVENT
 END:VCALENDAR
 ICS;
 
-        $version = \Sabre\VObject\Version::VERSION;
         $expected = [];
 
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -907,7 +906,7 @@ ICS;
         $version = \Sabre\VObject\Version::VERSION;
 
         $expected = [];
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -972,7 +971,7 @@ ICS
 
         ];
 
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -1049,7 +1048,7 @@ ICS
 
         ];
 
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 
@@ -1109,8 +1108,6 @@ END:VEVENT
 END:VCALENDAR
 ICS;
 
-        $version = \Sabre\VObject\Version::VERSION;
-
         $expected = [
             [
                 'uid'           => 'foobar',
@@ -1143,7 +1140,7 @@ ICS
 
         ];
 
-        $result = $this->parse($oldMessage, $newMessage, $expected);
+        $this->parse($oldMessage, $newMessage, $expected);
 
     }
 }

-- 
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