aboutsummaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-01-20 14:14:01 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-01-20 14:14:01 +0100
commitce47065d8fe82d6edea3d8f8a8f11b180aa933ea (patch)
tree615a9c4b39e4c32753b2d3e7b49d8b9e064fabc6 /core/ajax
parentfedc7c6f34f659401f503d6306faff65f5eecf6a (diff)
downloadnextcloud-server-ce47065d8fe82d6edea3d8f8a8f11b180aa933ea.tar.gz
nextcloud-server-ce47065d8fe82d6edea3d8f8a8f11b180aa933ea.zip
kill ancient code
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/share.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 1a2faa75dac..6d0a6a4e3b9 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -236,23 +236,6 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
if (isset($_GET['search'])) {
$shareWithinGroupOnly = OC\Share\Share::shareWithGroupMembersOnly();
$shareWith = array();
-// if (OC_App::isEnabled('contacts')) {
-// // TODO Add function to contacts to only get the 'fullname' column to improve performance
-// $ids = OC_Contacts_Addressbook::activeIds();
-// foreach ($ids as $id) {
-// $vcards = OC_Contacts_VCard::all($id);
-// foreach ($vcards as $vcard) {
-// $contact = $vcard['fullname'];
-// if (stripos($contact, $_GET['search']) !== false
-// && (!isset($_GET['itemShares'])
-// || !isset($_GET['itemShares'][OCP\Share::SHARE_TYPE_CONTACT])
-// || !is_array($_GET['itemShares'][OCP\Share::SHARE_TYPE_CONTACT])
-// || !in_array($contact, $_GET['itemShares'][OCP\Share::SHARE_TYPE_CONTACT]))) {
-// $shareWith[] = array('label' => $contact, 'value' => array('shareType' => 5, 'shareWith' => $vcard['id']));
-// }
-// }
-// }
-// }
$groups = OC_Group::getGroups($_GET['search']);
if ($shareWithinGroupOnly) {
$usergroups = OC_Group::getUserGroups(OC_User::getUser());