Remove dead code

Ancient files_sharing updater code I came across.
This commit is contained in:
Roeland Jago Douma 2016-05-02 08:20:42 +02:00
parent c4ec5bca1b
commit 45d618a133
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 0 additions and 15 deletions

View File

@ -84,21 +84,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
*