diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-02 08:20:42 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-02 08:20:42 +0200 |
commit | 45d618a133cee865ac7bf260e586987c50ea2f69 (patch) | |
tree | e96535adc27415728c26dc7e43d41aa159f4b40d /apps | |
parent | c4ec5bca1ba39f0a8e75ca8c47895a3a0eef5628 (diff) | |
download | nextcloud-server-45d618a133cee865ac7bf260e586987c50ea2f69.tar.gz nextcloud-server-45d618a133cee865ac7bf260e586987c50ea2f69.zip |
Remove dead code
Ancient files_sharing updater code I came across.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/updater.php | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/apps/files_sharing/lib/updater.php b/apps/files_sharing/lib/updater.php index de68e2ea0fc..dc47009c14b 100644 --- a/apps/files_sharing/lib/updater.php +++ b/apps/files_sharing/lib/updater.php @@ -85,21 +85,6 @@ class Shared_Updater { } /** - * clean up oc_share table from files which are no longer exists - * - * This fixes issues from updates from files_sharing < 0.3.5.6 (ownCloud 4.5) - * It will just be called during the update of the app - */ - static public function fixBrokenSharesOnAppUpdate() { - // delete all shares where the original file no longer exists - $findAndRemoveShares = \OCP\DB::prepare('DELETE FROM `*PREFIX*share` ' . - 'WHERE `item_type` IN (\'file\', \'folder\') ' . - 'AND `file_source` NOT IN (SELECT `fileid` FROM `*PREFIX*filecache`)' - ); - $findAndRemoveShares->execute(array()); - } - - /** * rename mount point from the children if the parent was renamed * * @param string $oldPath old path relative to data/user/files |