diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-03-17 10:59:53 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-03-17 13:09:23 +0100 |
commit | bf017f5c11177174bacfc5bb2570b34a404ecda7 (patch) | |
tree | 1d064b92a4c7ec853d9928e215e73d6ae7313d87 /lib/private/filechunking.php | |
parent | 979a3ff8300487a96f07f18f454c5437dbc62f1b (diff) | |
download | nextcloud-server-bf017f5c11177174bacfc5bb2570b34a404ecda7.tar.gz nextcloud-server-bf017f5c11177174bacfc5bb2570b34a404ecda7.zip |
Remove unused code
This code is not used anymore.
Diffstat (limited to 'lib/private/filechunking.php')
-rw-r--r-- | lib/private/filechunking.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/private/filechunking.php b/lib/private/filechunking.php index 32cbb7559f0..d6ff160870d 100644 --- a/lib/private/filechunking.php +++ b/lib/private/filechunking.php @@ -146,35 +146,6 @@ class OC_FileChunking { $cache->remove($prefix.$index); } - public function signature_split($orgfile, $input) { - $info = unpack('n', fread($input, 2)); - $blocksize = $info[1]; - $this->info['transferid'] = mt_rand(); - $count = 0; - $needed = array(); - $cache = $this->getCache(); - $prefix = $this->getPrefix(); - while (!feof($orgfile)) { - $new_md5 = fread($input, 16); - if (feof($input)) { - break; - } - $data = fread($orgfile, $blocksize); - $org_md5 = md5($data, true); - if ($org_md5 == $new_md5) { - $cache->set($prefix.$count, $data); - } else { - $needed[] = $count; - } - $count++; - } - return array( - 'transferid' => $this->info['transferid'], - 'needed' => $needed, - 'count' => $count, - ); - } - /** * Assembles the chunks into the file specified by the path. * Also triggers the relevant hooks and proxies. |