From a28fa5377ac8f8291b6c80803491737438175358 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 2 Jun 2022 20:59:00 -1000 Subject: [PATCH] Remove unused code from logbook (#72950) --- homeassistant/components/logbook/processor.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/homeassistant/components/logbook/processor.py b/homeassistant/components/logbook/processor.py index b3a43c2ca35..e5cc0f124b0 100644 --- a/homeassistant/components/logbook/processor.py +++ b/homeassistant/components/logbook/processor.py @@ -417,12 +417,6 @@ def _rows_match(row: Row | EventAsRow, other_row: Row | EventAsRow) -> bool: return False -def _row_event_data_extract(row: Row | EventAsRow, extractor: re.Pattern) -> str | None: - """Extract from event_data row.""" - result = extractor.search(row.shared_data or row.event_data or "") - return result.group(1) if result else None - - def _row_time_fired_isoformat(row: Row | EventAsRow) -> str: """Convert the row timed_fired to isoformat.""" return process_timestamp_to_utc_isoformat(row.time_fired or dt_util.utcnow())