From 4823d4f3b6ce68f5833d83a13a0dcc746b1f0a72 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Mon, 28 Jul 2014 12:39:12 +0200 Subject: [PATCH] Remove File::getPropsFromPath() (deprecated since 1.19) Change-Id: I11b6c582b9ce60cba03e55d55afb7cd02d218049 --- 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 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 */ -- 2.20.1