Merge "Balancer: remove redundant assignment"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 5 Aug 2016 00:27:25 +0000 (00:27 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 5 Aug 2016 00:27:25 +0000 (00:27 +0000)
includes/tidy/Balancer.php

index 20f8f55..21acdb3 100644 (file)
@@ -980,7 +980,6 @@ class BalanceStack implements IteratorAggregate {
         * @param int $idx
         */
        public function popTo( $idx ) {
-               $length = count( $this->elements );
                for ( $length = count( $this->elements ); $length > $idx; $length-- ) {
                        $this->pop();
                }