Skip to content

Commit 907e0d5

Browse files
committed
Remove _update_first_cons/prod_log_reference()
1 parent bb221fe commit 907e0d5

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -475,30 +475,6 @@ def _update_first_log_reference(
475475
self._first_log_slot = slot
476476
self._first_log_timestamp = timestamp
477477

478-
def _update_first_consumption_log_reference(
479-
self, address: int, slot: int, timestamp: datetime
480-
) -> None:
481-
"""Update references to first (oldest) log consumption record."""
482-
if (
483-
self._first_log_consumption_timestamp is None
484-
or self._first_log_consumption_timestamp >= timestamp
485-
):
486-
self._first_log_consumption_timestamp = timestamp
487-
self._first_log_consumption_address = address
488-
self._first_log_consumption_slot = slot
489-
490-
def _update_first_production_log_reference(
491-
self, address: int, slot: int, timestamp: datetime
492-
) -> None:
493-
"""Update references to first (oldest) log production record."""
494-
if (
495-
self._first_log_production_timestamp is None
496-
or self._first_log_production_timestamp >= timestamp
497-
):
498-
self._first_log_production_timestamp = timestamp
499-
self._first_log_production_address = address
500-
self._first_log_production_slot = slot
501-
502478
def _update_log_references(self, address: int, slot: int) -> None:
503479
"""Update next expected log timestamps."""
504480
if self._logs is None:

0 commit comments

Comments
 (0)