From: umherirrender Date: Mon, 28 Jul 2014 10:39:12 +0000 (+0200) Subject: Remove File::getPropsFromPath() (deprecated since 1.19) X-Git-Tag: 1.31.0-rc.0~14713 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=4823d4f3b6ce68f5833d83a13a0dcc746b1f0a72;p=lhc%2Fweb%2Fwiklou.git Remove File::getPropsFromPath() (deprecated since 1.19) Change-Id: I11b6c582b9ce60cba03e55d55afb7cd02d218049 --- diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index bc949424a1..fa8ed0059e 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -281,6 +281,7 @@ changes to languages because of Bugzilla reports. * 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) +* Removed File::getPropsFromPath(). (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 17207d40dc..c6da1f18b4 100644 --- a/includes/filerepo/file/File.php +++ b/includes/filerepo/file/File.php @@ -2072,25 +2072,6 @@ abstract class File { return true; } - /** - * Get an associative array containing information about a file in the local filesystem. - * - * @param string $path Absolute local filesystem path - * @param string|bool $ext The file extension, or true to extract it from - * the filename. Set it to false to ignore the extension. - * - * @return array - * @deprecated since 1.19 - */ - static function getPropsFromPath( $path, $ext = true ) { - wfDebug( __METHOD__ . ": Getting file info for $path\n" ); - wfDeprecated( __METHOD__, '1.19' ); - - $fsFile = new FSFile( $path ); - - return $fsFile->getProps(); - } - /** * @return array HTTP header name/value map to use for HEAD/GET request responses */