Remove deprecated Profiler::(get|set)Templated
Deprecated and unused Change-Id: I7b46543e0e32b6f13fcf8f8fb9273946ffbbdee9
This commit is contained in:
parent
1deb0f8e88
commit
1fbdc8f19d
2 changed files with 2 additions and 22 deletions
|
|
@ -219,6 +219,8 @@ because of Phabricator reports.
|
|||
* mw.Title.getDotExtension() from the 'mediawiki.Title' module was removed
|
||||
without deprecation. You should use mw.Title.getExtension() and prepend
|
||||
the dot if need be.
|
||||
* Profiler::getTemplated and Profiler::setTemplated, deprecated in 1.34,
|
||||
have been removed.
|
||||
* Removed HookContainer::getOriginalHooksForTest() without deprecation.
|
||||
This method was introduced in 1.35 for internal use, and appears unused
|
||||
outside of MediaWiki core.
|
||||
|
|
|
|||
|
|
@ -291,28 +291,6 @@ abstract class Profiler {
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark this call as templated or not
|
||||
*
|
||||
* @deprecated since 1.34 Use setAllowOutput() instead.
|
||||
* @param bool $t
|
||||
*/
|
||||
public function setTemplated( $t ) {
|
||||
wfDeprecated( __METHOD__, '1.34' );
|
||||
$this->allowOutput = ( $t === true );
|
||||
}
|
||||
|
||||
/**
|
||||
* Was this call as templated or not
|
||||
*
|
||||
* @deprecated since 1.34 Use getAllowOutput() instead.
|
||||
* @return bool
|
||||
*/
|
||||
public function getTemplated() {
|
||||
wfDeprecated( __METHOD__, '1.34' );
|
||||
return $this->getAllowOutput();
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable appending profiles to standard output.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue