From 6941266e7b01350daa35f7633ff5ab66d4e6b9e9 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Thu, 23 Aug 2012 02:28:11 +0200 Subject: Remove obsolete closure. --- apps/contacts/lib/vcard.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/apps/contacts/lib/vcard.php b/apps/contacts/lib/vcard.php index a349449a99f..5aa3dd85ede 100644 --- a/apps/contacts/lib/vcard.php +++ b/apps/contacts/lib/vcard.php @@ -560,19 +560,6 @@ class OC_Contacts_VCard{ public static function structureContact($object) { $details = array(); - $addIM = function($name, $temp, &$details) { - if(!array_key_exists('IMPP', $details)) { - $details['IMPP'] = array(); - } - - foreach($details['IMPP'] as $im) { - if(strtolower($im['value']) == strtolower($temp['value']) && $im['name'] == $name) { - return; - } - } - $details['IMPP'][] = $temp; - }; - foreach($object->children as $property) { $pname = $property->name; $temp = self::structureProperty($property); -- cgit v1.2.3