jenkins-bot has submitted this change and it was merged.

Change subject: Remove ContentHandler::deprecated()
......................................................................


Remove ContentHandler::deprecated()

Now unused, replaced with wfDeprecated() calls specifically

Bug: T145728
Change-Id: Id269bcd2958f23ecbc7f4f06a8c3ab5873c53117
---
M includes/content/ContentHandler.php
1 file changed, 0 insertions(+), 28 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/content/ContentHandler.php 
b/includes/content/ContentHandler.php
index 5755918..3389a00 100644
--- a/includes/content/ContentHandler.php
+++ b/includes/content/ContentHandler.php
@@ -83,15 +83,6 @@
  */
 abstract class ContentHandler {
        /**
-        * Switch for enabling deprecation warnings. Used by 
ContentHandler::deprecated()
-        * and ContentHandler::runLegacyHooks().
-        *
-        * Once the ContentHandler code has settled in a bit, this should be 
set to true to
-        * make extensions etc. show warnings when using deprecated functions 
and hooks.
-        */
-       protected static $enableDeprecationWarnings = false;
-
-       /**
         * Convenience function for getting flat text from a Content object. 
This
         * should only be used in the context of backwards compatibility with 
code
         * that is not yet able to handle Content objects!
@@ -1137,25 +1128,6 @@
         */
        public function supportsDirectApiEditing() {
                return $this->supportsDirectEditing();
-       }
-
-       /**
-        * Logs a deprecation warning, visible if $wgDevelopmentWarnings, but 
only if
-        * self::$enableDeprecationWarnings is set to true.
-        *
-        * @param string $func The name of the deprecated function
-        * @param string $version The version since the method is deprecated. 
Usually 1.21
-        *   for ContentHandler related stuff.
-        * @param string|bool $component : Component to which the function 
belongs.
-        *   If false, it is assumed the function is in MediaWiki core.
-        *
-        * @see ContentHandler::$enableDeprecationWarnings
-        * @see wfDeprecated
-        */
-       public static function deprecated( $func, $version, $component = false 
) {
-               if ( self::$enableDeprecationWarnings ) {
-                       wfDeprecated( $func, $version, $component, 3 );
-               }
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/314821
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id269bcd2958f23ecbc7f4f06a8c3ab5873c53117
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Reedy <re...@wikimedia.org>
Gerrit-Reviewer: Daniel Kinzler <daniel.kinz...@wikimedia.de>
Gerrit-Reviewer: Jackmcbarn <jackmcb...@gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to