Remove File::sha1Base36() (deprecated since 1.19)
authorumherirrender <umherirrender_de.wp@web.de>
Mon, 28 Jul 2014 10:46:10 +0000 (12:46 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Mon, 28 Jul 2014 10:46:10 +0000 (12:46 +0200)
Change-Id: I551a3c7451307e1a4fba3ea9b22320cc4ca72215

RELEASE-NOTES-1.24
includes/filerepo/file/File.php

index 119f1a2..ecb59eb 100644 (file)
@@ -275,6 +275,7 @@ changes to languages because of Bugzilla reports.
 * Removed maintenance script importTextFile.php. Use edit.php script instead.
 * A _from_namespace field has been added to the templatelinks, pagelinks,
   and filelinks tables. Run update.php to apply this change to the schema.
+* Removed File::sha1Base36(). (deprecated since 1.19)
 
 ==== Renamed classes ====
 * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression
index 32374cd..17207d4 100644 (file)
@@ -2091,25 +2091,6 @@ abstract class File {
                return $fsFile->getProps();
        }
 
-       /**
-        * Get a SHA-1 hash of a file in the local filesystem, in base-36 lower case
-        * encoding, zero padded to 31 digits.
-        *
-        * 160 log 2 / log 36 = 30.95, so the 160-bit hash fills 31 digits in base 36
-        * fairly neatly.
-        *
-        * @param string $path
-        * @return bool|string False on failure
-        * @deprecated since 1.19
-        */
-       static function sha1Base36( $path ) {
-               wfDeprecated( __METHOD__, '1.19' );
-
-               $fsFile = new FSFile( $path );
-
-               return $fsFile->getSha1Base36();
-       }
-
        /**
         * @return array HTTP header name/value map to use for HEAD/GET request responses
         */