From 6f6ce2ad244f3bd684fd54963635be10535573b6 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 12 May 2014 10:59:59 +0200 Subject: [PATCH] Removed unused method --- src/Helpers/TransferHelper.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Helpers/TransferHelper.php b/src/Helpers/TransferHelper.php index 5e561225..83b0829a 100644 --- a/src/Helpers/TransferHelper.php +++ b/src/Helpers/TransferHelper.php @@ -56,24 +56,6 @@ class TransferHelper self::$mocks[$url] = $sourceFile; } - public static function moveUpload($srcPath, $dstPath) - { - if ($srcPath == $dstPath) - throw new SimpleException('Trying to move file to the same location'); - - if (is_uploaded_file($srcPath)) - { - move_uploaded_file($srcPath, $dstPath); - } - else - { - //problems with permissions on some systems? - #rename($srcPath, $dstPath); - self::copy($srcPath, $dstPath); - self::remove($srcPath); - } - } - public static function copy($srcPath, $dstPath) { if ($srcPath == $dstPath)