Remove deprecated Linker::getExternalLinkAttributes method
authoraude <aude.wiki@gmail.com>
Thu, 13 Nov 2014 13:39:16 +0000 (14:39 +0100)
committeraude <aude.wiki@gmail.com>
Thu, 13 Nov 2014 13:39:16 +0000 (14:39 +0100)
deprecated since 1.18 and unused anywhere else in
core or all the extensions in gerrit:

https://github.com/search?utf8=%E2%9C%93&q=getExternalLinkAttributes+%40wikimedia&type=Code&ref=searchresults

Change-Id: Id5ae9186b3a83672c8310adb5dfdaf07bfec3d74

includes/Linker.php

index 40ebaea..876aa5f 100644 (file)
@@ -36,21 +36,6 @@ class Linker {
        const TOOL_LINKS_NOBLOCK = 1;
        const TOOL_LINKS_EMAIL = 2;
 
-       /**
-        * Get the appropriate HTML attributes to add to the "a" element of an
-        * external link, as created by [wikisyntax].
-        *
-        * @param string $class The contents of the class attribute; if an empty
-        *   string is passed, which is the default value, defaults to 'external'.
-        * @return string
-        * @deprecated since 1.18 Just pass the external class directly to something
-        *   using Html::expandAttributes.
-        */
-       static function getExternalLinkAttributes( $class = 'external' ) {
-               wfDeprecated( __METHOD__, '1.18' );
-               return self::getLinkAttributesInternal( '', $class );
-       }
-
        /**
         * Get the appropriate HTML attributes to add to the "a" element of an interwiki link.
         *