summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-06-10 14:47:32 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-10 14:47:32 +0200
commitf4a183e753c1c7b5397c866cf6627f7512a86382 (patch)
tree33698f222f96aa3afefd4dc96b0856f6a89a0e47 /apps/files_versions/lib
parent1d9b4aadbf65794f34c70ece5d3faa784191acf1 (diff)
downloadnextcloud-server-f4a183e753c1c7b5397c866cf6627f7512a86382.tar.gz
nextcloud-server-f4a183e753c1c7b5397c866cf6627f7512a86382.zip
wwe no longer have a versions table
Diffstat (limited to 'apps/files_versions/lib')
-rw-r--r--apps/files_versions/lib/hooks.php15
-rw-r--r--apps/files_versions/lib/versions.php11
2 files changed, 0 insertions, 26 deletions
diff --git a/apps/files_versions/lib/hooks.php b/apps/files_versions/lib/hooks.php
index 2de4001affd..990f1403e8d 100644
--- a/apps/files_versions/lib/hooks.php
+++ b/apps/files_versions/lib/hooks.php
@@ -74,19 +74,4 @@ class Hooks {
}
}
- /**
- * clean up user specific settings if user gets deleted
- * @param array $params array with uid
- *
- * This function is connected to the pre_deleteUser signal of OC_Users
- * to remove the used space for versions stored in the database
- */
- public static function deleteUser_hook($params) {
-
- if (\OCP\App::isEnabled('files_versions')) {
- $uid = $params['uid'];
- Storage::deleteUser($uid);
- }
- }
-
}
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index 15d0e032ea0..b912fc8ba76 100644
--- a/apps/files_versions/lib/versions.php
+++ b/apps/files_versions/lib/versions.php
@@ -302,17 +302,6 @@ class Storage {
}
/**
- * deletes used space for files versions in db if user was deleted
- *
- * @param string $uid id of deleted user
- * @return \OC_DB_StatementWrapper of db delete operation
- */
- public static function deleteUser($uid) {
- $query = \OC_DB::prepare('DELETE FROM `*PREFIX*files_versions` WHERE `user`=?');
- return $query->execute(array($uid));
- }
-
- /**
* returns all stored file versions from a given user
* @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