mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 07:34:22 +00:00
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
This commit is contained in:
parent
84d531cca0
commit
b6faed7363
|
@ -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' ) );
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue