Removed unused method

This commit is contained in:
Marcin Kurczewski 2014-05-12 10:59:59 +02:00
parent 20ad5da89a
commit 6f6ce2ad24

View file

@ -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)