From f0d2926c03a596d74b7df3f993a61b57ef5053b0 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 25 Jun 2014 20:35:56 +0200 Subject: [PATCH] Remove ApiBase::createContext() (deprecated since 1.19) Change-Id: Iee20e1c5e5b83b5b43303bde7e524b95b74eb62b --- RELEASE-NOTES-1.24 | 1 + includes/api/ApiBase.php | 15 --------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index 44c0250639..d50c454c72 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -182,6 +182,7 @@ changes to languages because of Bugzilla reports. * Removed ImageGalleryBase::useSkin(). (deprecated since 1.18) * Removed DatabaseMysqlBase::getLagFromProcesslist(). (deprecated since 1.19) * Removed LoadBalancer::closeConnecton(). (deprecated since 1.18) +* Removed ApiBase::createContext(). (deprecated since 1.19) ==== Renamed classes ==== * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 25a1714b6e..d2217999b9 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -223,21 +223,6 @@ abstract class ApiBase extends ContextSource { return $this->getResult()->getData(); } - /** - * Create a new RequestContext object to use e.g. for calls to other parts - * the software. - * The object will have the WebRequest and the User object set to the ones - * used in this instance. - * - * @deprecated since 1.19 use getContext to get the current context - * @return DerivativeContext - */ - public function createContext() { - wfDeprecated( __METHOD__, '1.19' ); - - return new DerivativeContext( $this->getContext() ); - } - /** * Set warning section for this module. Users should monitor this * section to notice any changes in API. Multiple calls to this -- 2.20.1