summaryrefslogtreecommitdiffstats
path: root/apps/contacts
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2012-04-14 12:52:17 +0200
committerJakob Sack <mail@jakobsack.de>2012-04-15 16:50:44 +0200
commit9b1d6246a91cf896b3f37920098ea4d0f6c6098a (patch)
tree13a69afe5a92371c7ae33059fc26dcba23df256e /apps/contacts
parent9ac65c51f5bcc06c400e64ff7db53adc5be80c84 (diff)
downloadnextcloud-server-9b1d6246a91cf896b3f37920098ea4d0f6c6098a.tar.gz
nextcloud-server-9b1d6246a91cf896b3f37920098ea4d0f6c6098a.zip
Remove useless, unmaintained dav.php
Diffstat (limited to 'apps/contacts')
-rw-r--r--apps/contacts/appinfo/app.php1
-rw-r--r--apps/contacts/lib/hooks.php13
2 files changed, 0 insertions, 14 deletions
diff --git a/apps/contacts/appinfo/app.php b/apps/contacts/appinfo/app.php
index 0ff8fd29ef3..7e44219ce99 100644
--- a/apps/contacts/appinfo/app.php
+++ b/apps/contacts/appinfo/app.php
@@ -8,7 +8,6 @@ OC::$CLASSPATH['OC_Search_Provider_Contacts'] = 'apps/contacts/lib/search.php';
OC_HOOK::connect('OC_User', 'post_deleteUser', 'OC_Contacts_Hooks', 'deleteUser');
OC_HOOK::connect('OC_Calendar', 'getEvents', 'OC_Contacts_Hooks', 'getBirthdayEvents');
OC_HOOK::connect('OC_Calendar', 'getSources', 'OC_Contacts_Hooks', 'getCalenderSources');
-OC_Hook::connect('OC_DAV', 'initialize', 'OC_Contacts_Hooks', 'initializeCardDAV');
OC_App::register( array(
'order' => 10,
diff --git a/apps/contacts/lib/hooks.php b/apps/contacts/lib/hooks.php
index e09da20be86..b858c4a5a48 100644
--- a/apps/contacts/lib/hooks.php
+++ b/apps/contacts/lib/hooks.php
@@ -39,19 +39,6 @@ class OC_Contacts_Hooks{
return true;
}
- /**
- * @brief Adds the CardDAV resource to the DAV server
- * @param paramters parameters from initialize-Hook
- * @return array
- */
- static public function initializeCardDAV($parameters){
- // We need a backend, the root node and the carddav plugin
- $parameters['backends']['carddav'] = new OC_Connector_Sabre_CardDAV();
- $parameters['nodes'][] = new Sabre_CardDAV_AddressBookRoot($parameters['backends']['principal'], $parameters['backends']['carddav']);
- $parameters['plugins'][] = new Sabre_CardDAV_Plugin();
- return true;
- }
-
static public function getCalenderSources($parameters) {
$base_url = OC_Helper::linkTo('calendar', 'ajax/events.php').'?calendar_id=';
foreach(OC_Contacts_Addressbook::all(OC_User::getUser()) as $addressbook) {