refactor(dav): remove unused CalDAVBackend method

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
pull/53070/head
Thomas Citharel 1 year ago committed by Andy Scherzinger
parent f59db4c86a
commit 9252e2689b
  1. 19
      apps/dav/lib/CalDAV/CalDavBackend.php

@ -1538,25 +1538,6 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
}, $this->db);
}
/**
* @param int $calendarObjectId
* @param int $classification
*/
public function setClassification($calendarObjectId, $classification) {
$this->cachedObjects = [];
if (!in_array($classification, [
self::CLASSIFICATION_PUBLIC, self::CLASSIFICATION_PRIVATE, self::CLASSIFICATION_CONFIDENTIAL
])) {
throw new \InvalidArgumentException();
}
$query = $this->db->getQueryBuilder();
$query->update('calendarobjects')
->set('classification', $query->createNamedParameter($classification))
->where($query->expr()->eq('id', $query->createNamedParameter($calendarObjectId)))
->executeStatement();
}
/**
* Deletes an existing calendar object.
*

Loading…
Cancel
Save