From 00190053bc838e4f4b7ea38d5d36f47a006ad44d Mon Sep 17 00:00:00 2001 From: umherirrender Date: Mon, 28 Jul 2014 12:46:10 +0200 Subject: [PATCH] Remove File::sha1Base36() (deprecated since 1.19) Change-Id: I551a3c7451307e1a4fba3ea9b22320cc4ca72215 --- RELEASE-NOTES-1.24 | 1 + includes/filerepo/file/File.php | 19 ------------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index 119f1a24e4..ecb59eb93c 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -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 diff --git a/includes/filerepo/file/File.php b/includes/filerepo/file/File.php index 32374cdeaa..17207d40dc 100644 --- a/includes/filerepo/file/File.php +++ b/includes/filerepo/file/File.php @@ -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 */ -- 2.20.1