Merge "remove unused code"
This commit is contained in:
commit
1a627916c1
|
@ -50,7 +50,6 @@ class MathHooks {
|
||||||
$renderer = MathRenderer::getRenderer(
|
$renderer = MathRenderer::getRenderer(
|
||||||
$content, $attributes, $mode
|
$content, $attributes, $mode
|
||||||
);
|
);
|
||||||
$renderer->setAnchorID( $parser->nextLinkID() ); // Add an ID for referencing the equation later on only used by LaTeXML
|
|
||||||
$renderedMath = $renderer->render();
|
$renderedMath = $renderer->render();
|
||||||
if ( $wgUseMathJax && $mode == MW_MATH_MATHJAX ) {
|
if ( $wgUseMathJax && $mode == MW_MATH_MATHJAX ) {
|
||||||
$parser->getOutput()->addModules( array( 'ext.math.mathjax.enabler' ) );
|
$parser->getOutput()->addModules( array( 'ext.math.mathjax.enabler' ) );
|
||||||
|
|
|
@ -28,7 +28,6 @@ abstract class MathRenderer {
|
||||||
var $conservativeness = 0;
|
var $conservativeness = 0;
|
||||||
var $params = '';
|
var $params = '';
|
||||||
protected $recall;
|
protected $recall;
|
||||||
protected $anchorID = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a base MathRenderer
|
* Constructs a base MathRenderer
|
||||||
|
@ -204,24 +203,6 @@ abstract class MathRenderer {
|
||||||
return $this->recall;
|
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
|
* Gets TeX markup
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue