mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
refactor(dav): remove unused CalDAVBackend method
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
f59db4c86a
commit
9252e2689b
1 changed files with 0 additions and 19 deletions
|
|
@ -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…
Reference in a new issue