diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2024-07-05 07:52:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-05 07:52:32 +0200 |
commit | 5d2d582a2b317756da3e5247171683795fed6612 (patch) | |
tree | 12788e3c3a5f0ea947160c2816a13cd942288864 /apps | |
parent | 915eef642921e6dea1f4b6b2c5423ad84eb1061d (diff) | |
parent | 65e4d46e2c0b4694469a01f00c58829c64833e82 (diff) | |
download | nextcloud-server-5d2d582a2b317756da3e5247171683795fed6612.tar.gz nextcloud-server-5d2d582a2b317756da3e5247171683795fed6612.zip |
Merge pull request #46295 from nextcloud/chore/remove-obsolete-function-generateVCalendar
chore(caldav): remove obsolete function
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/Schedule/IMipService.php | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/apps/dav/lib/CalDAV/Schedule/IMipService.php b/apps/dav/lib/CalDAV/Schedule/IMipService.php index ec5e4f4d1ac..5141f519588 100644 --- a/apps/dav/lib/CalDAV/Schedule/IMipService.php +++ b/apps/dav/lib/CalDAV/Schedule/IMipService.php @@ -596,31 +596,6 @@ class IMipService { } /** - * Create a valid VCalendar object out of the details of - * a VEvent and its associated iTip Message - * - * We do this to filter out all unchanged VEvents - * This is especially important in iTip Messages with recurrences - * and recurrence exceptions - * - * @param Message $iTipMessage - * @param VEvent $vEvent - * @return VCalendar - */ - public function generateVCalendar(Message $iTipMessage, VEvent $vEvent): VCalendar { - $vCalendar = new VCalendar(); - $vCalendar->add('METHOD', $iTipMessage->method); - foreach ($iTipMessage->message->getComponents() as $component) { - if ($component instanceof VEvent) { - continue; - } - $vCalendar->add(clone $component); - } - $vCalendar->add($vEvent); - return $vCalendar; - } - - /** * @param IEMailTemplate $template * @param $token */ |