Removed unused saveTempUploadedFile() function
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 30 Mar 2012 01:54:26 +0000 (18:54 -0700)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 30 Mar 2012 01:54:26 +0000 (18:54 -0700)
Change-Id: I262936a2a68b745f6fb3235a21652a4ad3737e39

includes/upload/UploadBase.php

index 81143d2..f6078dc 100644 (file)
@@ -714,26 +714,6 @@ abstract class UploadBase {
                return $this->mLocalFile;
        }
 
-       /**
-        * NOTE: Probably should be deprecated in favor of UploadStash, but this is sometimes
-        * called outside that context.
-        *
-        * Stash a file in a temporary directory for later processing
-        * after the user has confirmed it.
-        *
-        * If the user doesn't explicitly cancel or accept, these files
-        * can accumulate in the temp directory.
-        *
-        * @param $saveName String: the destination filename
-        * @param $tempSrc String: the source temporary file to save
-        * @return String: full path the stashed file, or false on failure
-        */
-       protected function saveTempUploadedFile( $saveName, $tempSrc ) {
-               $repo = RepoGroup::singleton()->getLocalRepo();
-               $status = $repo->storeTemp( $saveName, $tempSrc );
-               return $status;
-       }
-
        /**
         * If the user does not supply all necessary information in the first upload form submission (either by accident or
         * by design) then we may want to stash the file temporarily, get more information, and publish the file later.