]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix merge conflict
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 3 Jun 2014 17:05:21 +0000 (19:05 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 3 Jun 2014 17:05:21 +0000 (19:05 +0200)
apps/files_versions/lib/versions.php

index 8dc01d18ad9a8e90851a7c8c8dca0ab77604ef96..15d0e032ea0e779d0dc74f2190066f76e4ba6398 100644 (file)
@@ -312,39 +312,8 @@ class Storage {
                return $query->execute(array($uid));
        }
 
-       /**
-<<<<<<< HEAD
-        * get the size of all stored versions from a given user
-        * @param string $uid id from the user
-        * @return int size of versions
-        */
-       private static function calculateSize($uid) {
-               if (\OCP\Config::getSystemValue('files_versions', Storage::DEFAULTENABLED) == 'true') {
-                       $view = new \OC\Files\View('/' . $uid . '/files_versions');
-
-                       $size = 0;
-
-                       $dirContent = $view->getDirectoryContent('/');
-
-                       while (!empty($dirContent)) {
-                               $path = reset($dirContent);
-                               if ($path['type'] === 'dir') {
-                                       $dirContent = array_merge($dirContent, $view->getDirectoryContent(substr($path['path'], strlen('files_versions'))));
-                               } else {
-                                       $size += $view->filesize(substr($path['path'], strlen('files_versions')));
-                               }
-                               unset($dirContent[key($dirContent)]);
-                       }
-
-                       return $size;
-               }
-       }
-
        /**
         * returns all stored file versions from a given user
-=======
-        * @brief returns all stored file versions from a given user
->>>>>>> 2f97e2f... let file cache handle the versions size
         * @param string $uid id of the user
         * @return array with contains two arrays 'all' which contains all versions sorted by age and 'by_file' which contains all versions sorted by filename
         */