Skip to content

Commit cbec679

Browse files
committed
Remove len magic from ring buffer
Signed-off-by: cwasicki <[email protected]>
1 parent 52e48ce commit cbec679

File tree

1 file changed

+0
-4
lines changed
  • src/frequenz/sdk/timeseries/_ringbuffer

1 file changed

+0
-4
lines changed

src/frequenz/sdk/timeseries/_ringbuffer/buffer.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,3 @@ def count_valid(self) -> int:
624624
return len(self._buffer) - start_index + end_index + 1 - sum_missing_entries
625625

626626
return end_index + 1 - start_index - sum_missing_entries
627-
628-
def __len__(self) -> int:
629-
"""Return the count of valid items that this container currently holds."""
630-
return self.count_valid()

0 commit comments

Comments
 (0)