From 73d3769e0ce8f09d25f4baf7a54afe72d424455d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 29 Mar 2012 18:54:26 -0700 Subject: [PATCH] Removed unused saveTempUploadedFile() function Change-Id: I262936a2a68b745f6fb3235a21652a4ad3737e39 --- includes/upload/UploadBase.php | 20 -------------------- 1 file changed, 20 deletions(-) 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. -- 2.20.1