Skip to content

Commit 6d0d83b

Browse files
Merge pull request #53070 from nextcloud/remove-unused-method
refactor(dav): remove unused CalDAVBackend method
2 parents f59db4c + 9252e26 commit 6d0d83b

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,25 +1538,6 @@ public function moveCalendarObject(string $sourcePrincipalUri, int $sourceObject
15381538
}, $this->db);
15391539
}
15401540

1541-
1542-
/**
1543-
* @param int $calendarObjectId
1544-
* @param int $classification
1545-
*/
1546-
public function setClassification($calendarObjectId, $classification) {
1547-
$this->cachedObjects = [];
1548-
if (!in_array($classification, [
1549-
self::CLASSIFICATION_PUBLIC, self::CLASSIFICATION_PRIVATE, self::CLASSIFICATION_CONFIDENTIAL
1550-
])) {
1551-
throw new \InvalidArgumentException();
1552-
}
1553-
$query = $this->db->getQueryBuilder();
1554-
$query->update('calendarobjects')
1555-
->set('classification', $query->createNamedParameter($classification))
1556-
->where($query->expr()->eq('id', $query->createNamedParameter($calendarObjectId)))
1557-
->executeStatement();
1558-
}
1559-
15601541
/**
15611542
* Deletes an existing calendar object.
15621543
*

0 commit comments

Comments
 (0)