From: Arlo Breault Date: Fri, 9 Mar 2018 22:46:53 +0000 (-0500) Subject: Remove "dash" case in preprocessToObj X-Git-Tag: 1.31.0-rc.0~399^2 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=7c450dff6425e93851313e36acf1acb0c96f9d94;p=lhc%2Fweb%2Fwiklou.git Remove "dash" case in preprocessToObj This was introduced in 2877402 and removed in 186a182 Change-Id: Ibfa1ae1597bfc50ae6ea49402c7966ca042f12e5 --- diff --git a/includes/parser/Preprocessor_DOM.php b/includes/parser/Preprocessor_DOM.php index 81243f3c6d..09ca38a626 100644 --- a/includes/parser/Preprocessor_DOM.php +++ b/includes/parser/Preprocessor_DOM.php @@ -794,9 +794,6 @@ class Preprocessor_DOM extends Preprocessor { $stack->getCurrentPart()->eqpos = strlen( $accum ); $accum .= '='; ++$i; - } elseif ( $found == 'dash' ) { - $accum .= '-'; - ++$i; } } diff --git a/includes/parser/Preprocessor_Hash.php b/includes/parser/Preprocessor_Hash.php index c4c0c5ada4..7dbf9b1ad7 100644 --- a/includes/parser/Preprocessor_Hash.php +++ b/includes/parser/Preprocessor_Hash.php @@ -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; } }