Get rid of Language::usesFirstLettersInLists()
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 5 Sep 2010 20:43:00 +0000 (20:43 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 5 Sep 2010 20:43:00 +0000 (20:43 +0000)
Added by me in r69810, but never used.  It's not clear to me if it's
needed, but if so, it can be re-added later.

languages/Language.php

index 877d64f..c8a7533 100644 (file)
@@ -2966,18 +2966,6 @@ class Language {
                return strtoupper( $string );
        }
 
-       /**
-        * Does it make sense for lists to be split up into sections based on their
-        * first letter?  Logogram-based scripts probably want to return false.
-        *
-        * TODO: Use this in CategoryPage.php.
-        *
-        * @return boolean
-        */
-       public function usesFirstLettersInLists() {
-               return true;
-       }
-
        /**
         * Given a string, return the logical "first letter" to be used for
         * grouping on category pages and so on.  This has to be coordinated
@@ -2997,7 +2985,6 @@ class Language {
         * * [[Ape]]
         *
         * etc., assuming for the sake of argument that $wgCapitalLinks is false.
-        * Obviously, this is ignored if usesFirstLettersInLists() is false.
         *
         * @param string $string UTF-8 string
         * @return string UTF-8 string corresponding to the first letter of input