diff options
author | Roeland Douma <rullzer@users.noreply.github.com> | 2016-05-02 09:57:28 +0200 |
---|---|---|
committer | Roeland Douma <rullzer@users.noreply.github.com> | 2016-05-02 09:57:28 +0200 |
commit | 5a62c74495e489995f64be5b86e42927f57863f7 (patch) | |
tree | 1c71fd7752c9c914cd0f50db41f790ff48a5454b /apps | |
parent | 6b12f96b14ef4c560ae9be436caf2619739d74ae (diff) | |
parent | 45d618a133cee865ac7bf260e586987c50ea2f69 (diff) | |
download | nextcloud-server-5a62c74495e489995f64be5b86e42927f57863f7.tar.gz nextcloud-server-5a62c74495e489995f64be5b86e42927f57863f7.zip |
Merge pull request #24376 from owncloud/remove_dead_code
Remove dead code
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 |