Skip to content

add remove calendar event to CalendarExtensions - #2169

Merged
patriksvensson merged 1 commit into
spectreconsole:mainfrom
AntekOlszewski:remove-calendar-event
Jul 23, 2026
Merged

add remove calendar event to CalendarExtensions#2169
patriksvensson merged 1 commit into
spectreconsole:mainfrom
AntekOlszewski:remove-calendar-event

Conversation

@AntekOlszewski

Copy link
Copy Markdown
Contributor

Fixes #1962

  • I have read the Contribution Guidelines
  • I have checked that there isn't already another pull request that solves the above issue
  • All newly added code is adequately covered by tests
  • All existing tests are still running without errors

Changes

This change was previously proposed in #2062 but was closed without merging because of formality reasons (original PR didn't use PR template).
This PR reintroduces the same feature on top of the current codebase.

  • Added 4 overloads of RemoveCalendarEvent to CalendarExtensions in Calendar.cs:
    1. RemoveCalendarEvent(DateTime date)
    2. RemoveCalendarEvent(string description, DateTime date)
    3. RemoveCalendarEvent(int year, int month, int day)
    4. RemoveCalendarEvent(string description, int year, int month, int day)
  • Added 4 unit tests covering removal by date, by year/month/day, by description, and no-op when event doesn't exist

Please upvote 👍 this pull request if you are interested in it.

@patriksvensson patriksvensson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@patriksvensson
patriksvensson merged commit af4aacf into spectreconsole:main Jul 23, 2026
3 checks passed
@patriksvensson

Copy link
Copy Markdown
Contributor

Merged! Thank you for your contribution. Much appreciated! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a feature that allows calendar events to be removed after they have been added

2 participants