diff --git a/news/641.removal b/news/641.removal new file mode 100644 index 000000000..f0ee03d55 --- /dev/null +++ b/news/641.removal @@ -0,0 +1 @@ +Removed the unused ``Parameters.params()`` method, an undocumented alias for ``Parameters.keys()`` with no callers in the codebase. I used SWE-2 to assist with this change. :user:`Seyamalam` diff --git a/src/icalendar/parser/parameter.py b/src/icalendar/parser/parameter.py index 0482beab6..c18651cbb 100644 --- a/src/icalendar/parser/parameter.py +++ b/src/icalendar/parser/parameter.py @@ -20,7 +20,7 @@ from icalendar.timezone.tzid import tzid_from_dt if TYPE_CHECKING: - from collections.abc import Callable, KeysView, Sequence + from collections.abc import Callable, Sequence from icalendar.enums import VALUE from icalendar.parser.xcal.adapter import ElementAdapter @@ -370,12 +370,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: "CN": " '", } - def params(self) -> KeysView[str]: - """In RFC 5545 keys are called parameters, so this is to be consitent - with the naming conventions. - """ - return self.keys() - def to_ical(self, sorted: bool = True) -> bytes: # noqa: A002 """Returns an :rfc:`5545` representation of the parameters.