diff options
Diffstat (limited to 'apps/files_versions/lib')
-rw-r--r-- | apps/files_versions/lib/hooks.php | 15 | ||||
-rw-r--r-- | apps/files_versions/lib/versions.php | 11 |
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 |