TheDJ has submitted this change and it was merged.

Change subject: remove unused code
......................................................................


remove unused code

This code is never used and will not be used in the future.
Adressing the equation for search will be handled by the
MathSearch extension. There will be a hook function to label
the equations.

Change-Id: Ia2149460134b361fb44f8ad85660793b1951d988
---
M Math.hooks.php
M MathRenderer.php
2 files changed, 0 insertions(+), 20 deletions(-)

Approvals:
  TheDJ: Verified; Looks good to me, approved
  jenkins-bot: Checked



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 @@
                $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 @@
        var $conservativeness = 0;
        var $params = '';
        protected $recall;
-       protected $anchorID = 0;
 
        /**
         * Constructs a base MathRenderer
@@ -202,24 +201,6 @@
         */
        public function isRecall() {
                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;
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/60629
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia2149460134b361fb44f8ad85660793b1951d988
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <w...@physikerwelt.de>
Gerrit-Reviewer: Cjucovschi <jucovs...@gmail.com>
Gerrit-Reviewer: Mattflaschen <mflasc...@wikimedia.org>
Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: TheDJ <hartman.w...@gmail.com>
Gerrit-Reviewer: Worden.lee <worden....@gmail.com>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to