Remove "dash" case in preprocessToObj
authorArlo Breault <abreault@wikimedia.org>
Fri, 9 Mar 2018 22:46:53 +0000 (17:46 -0500)
committerArlo Breault <abreault@wikimedia.org>
Fri, 9 Mar 2018 22:46:53 +0000 (17:46 -0500)
This was introduced in 2877402 and removed in 186a182

Change-Id: Ibfa1ae1597bfc50ae6ea49402c7966ca042f12e5

includes/parser/Preprocessor_DOM.php
includes/parser/Preprocessor_Hash.php

index 81243f3..09ca38a 100644 (file)
@@ -794,9 +794,6 @@ class Preprocessor_DOM extends Preprocessor {
                                $stack->getCurrentPart()->eqpos = strlen( $accum );
                                $accum .= '=';
                                ++$i;
-                       } elseif ( $found == 'dash' ) {
-                               $accum .= '-';
-                               ++$i;
                        }
                }
 
index c4c0c5a..7dbf9b1 100644 (file)
@@ -744,9 +744,6 @@ class Preprocessor_Hash extends Preprocessor {
                                $accum[] = [ 'equals', [ '=' ] ];
                                $stack->getCurrentPart()->eqpos = count( $accum ) - 1;
                                ++$i;
-                       } elseif ( $found == 'dash' ) {
-                               self::addLiteral( $accum, '-' );
-                               ++$i;
                        }
                }