Remove pointless override of doStashFile in UploadFromStash
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 17 Aug 2016 19:22:19 +0000 (12:22 -0700)
committerKrinkle <krinklemail@gmail.com>
Wed, 17 Aug 2016 20:58:27 +0000 (20:58 +0000)
Change-Id: If6bc31d7398c68320a6633b045c33279bf6f8dbd

includes/upload/UploadFromStash.php

index 50bcbc4..1fbdb7d 100644 (file)
@@ -143,24 +143,6 @@ class UploadFromStash extends UploadBase {
                return $this->mFileProps['sha1'];
        }
 
-       /*
-        * protected function verifyFile() inherited
-        */
-
-       /**
-        * Stash the file.
-        *
-        * @param User $user
-        * @return UploadStashFile
-        */
-       protected function doStashFile( User $user = null ) {
-               // replace mLocalFile with an instance of UploadStashFile, which adds some methods
-               // that are useful for stashed files.
-               $this->mLocalFile = parent::doStashFile( $user );
-
-               return $this->mLocalFile;
-       }
-
        /**
         * Remove a temporarily kept file stashed by saveTempUploadedFile().
         * @return bool Success