diff --git a/Math.hooks.php b/Math.hooks.php index a70da28..a1d9fea 100644 --- a/Math.hooks.php +++ b/Math.hooks.php @@ -50,7 +50,6 @@ class MathHooks { $renderer = MathRenderer::getRenderer( $content, $attributes, $mode ); - $renderer->setAnchorID( $parser->nextLinkID() ); // Add an ID for referencing the equation later on only used by LaTeXML $renderedMath = $renderer->render(); if ( $wgUseMathJax && $mode == MW_MATH_MATHJAX ) { $parser->getOutput()->addModules( array( 'ext.math.mathjax.enabler' ) ); diff --git a/MathRenderer.php b/MathRenderer.php index e81b02f..feaf38e 100644 --- a/MathRenderer.php +++ b/MathRenderer.php @@ -28,7 +28,6 @@ abstract class MathRenderer { var $conservativeness = 0; var $params = ''; protected $recall; - protected $anchorID = 0; /** * Constructs a base MathRenderer @@ -204,24 +203,6 @@ abstract class MathRenderer { return $this->recall; } - /** - * Gets anchor ID - * - * @return string anchor ID - */ - public function getAnchorID() { - return $this->anchorID; - } - - /** - * Sets anchor ID - * - * @param string ID anchor ID - */ - public function setAnchorID( $ID ) { - $this->anchorID = $ID; - } - /** * Gets TeX markup *