Clean up backwards-compatibility code

Since Cite requires 1.25+ now, the checks for PPFrame::setVolatile(),
which was introduced in 1.24, can be removed.

Change-Id: I91df2e91b2f7a21b2b1147aa6af194980527f86b
This commit is contained in:
MGChecker 2018-04-18 22:21:03 +02:00
parent 20e26df4fc
commit 5ca090c67d

View file

@ -221,9 +221,7 @@ class Cite {
$parserOutput->addModules( 'ext.cite.a11y' );
$parserOutput->addModuleStyles( 'ext.cite.styles' );
if ( is_callable( [ $frame, 'setVolatile' ] ) ) {
$frame->setVolatile();
}
$frame->setVolatile();
// new <ref> tag, we may need to bump the ref data counter
// to avoid overwriting a previous group
@ -636,9 +634,7 @@ class Cite {
$this->mInReferences = true;
$ret = $this->guardedReferences( $str, $argv, $parser );
$this->mInReferences = false;
if ( is_callable( [ $frame, 'setVolatile' ] ) ) {
$frame->setVolatile();
}
$frame->setVolatile();
return $ret;
}