From 700a36ace05c4235785fb1d4dd0ae7a0e4b2dbc9 Mon Sep 17 00:00:00 2001 From: addshore Date: Thu, 26 Jan 2017 20:12:57 +0100 Subject: [PATCH] Remove ArchivedFile::getUserText() Deprecated since 1.23 No usages found on gerrit Change-Id: I037d56d6e57288753ae281388270d7e216707192 --- RELEASE-NOTES-1.29 | 1 + includes/filerepo/file/ArchivedFile.php | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/RELEASE-NOTES-1.29 b/RELEASE-NOTES-1.29 index 09ad0b56f3..330097b512 100644 --- a/RELEASE-NOTES-1.29 +++ b/RELEASE-NOTES-1.29 @@ -228,6 +228,7 @@ changes to languages because of Phabricator reports. see docs/hooks.txt. * User::crypt() (deprecated in 1.24) was removed. * User::comparePasswords() (deprecated in 1.24) was removed. +* ArchivedFile::getUserText() (deprecated in 1.23) was removed. == Compatibility == diff --git a/includes/filerepo/file/ArchivedFile.php b/includes/filerepo/file/ArchivedFile.php index 9a7a55be9e..6984d48c6d 100644 --- a/includes/filerepo/file/ArchivedFile.php +++ b/includes/filerepo/file/ArchivedFile.php @@ -492,22 +492,6 @@ class ArchivedFile { throw new MWException( "Unknown type '$type'." ); } - /** - * Return the user name of the uploader. - * - * @deprecated since 1.23 Use getUser( 'text' ) instead. - * @return string|int - */ - public function getUserText() { - wfDeprecated( __METHOD__, '1.23' ); - $this->load(); - if ( $this->isDeleted( File::DELETED_USER ) ) { - return 0; - } else { - return $this->user_text; - } - } - /** * Return upload description. * -- 2.20.1