Balancer: remove redundant assignment
authorTim Starling <tstarling@wikimedia.org>
Mon, 1 Aug 2016 02:12:43 +0000 (12:12 +1000)
committerCscott <cananian@wikimedia.org>
Thu, 4 Aug 2016 22:05:50 +0000 (22:05 +0000)
Change-Id: I6c22d6227e43a2c5be454955eff6b053a94a1657

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();
                }