Skip to content

Commit

Permalink
Remove _lookup_by_uid
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Feb 5, 2024
1 parent 980117e commit 2215196
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ical/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,6 @@
_T = TypeVar("_T", bound="Event | Todo")


def _lookup_by_uid(
items: Iterable[_T], uid: str, recurrence_id: str | None = None
) -> tuple[int | None, _T | None]:
"""Find the specified item by id."""
for i, item in enumerate(items):
if item.uid != uid:
continue
return i, item
return None, None


def _ensure_timezone(
dtstart: datetime.datetime | datetime.date | None, timezones: list[Timezone]
) -> Timezone | None:
Expand Down

0 comments on commit 2215196

Please sign in to comment.