From: Aaron Schulz Date: Fri, 30 Mar 2012 01:54:26 +0000 (-0700) Subject: Removed unused saveTempUploadedFile() function X-Git-Tag: 1.31.0-rc.0~24091^2 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=73d3769e0ce8f09d25f4baf7a54afe72d424455d;p=lhc%2Fweb%2Fwiklou.git Removed unused saveTempUploadedFile() function Change-Id: I262936a2a68b745f6fb3235a21652a4ad3737e39 --- diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index 81143d28ef..f6078dcb4e 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -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.