Skip to content

Commit e7d1cd6

Browse files
committed
remove dead code
1 parent 3bd2fa9 commit e7d1cd6

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

plugwise_usb/network/registry.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ def __init__(
4444
self._network_cache: NetworkRegistrationCache | None = None
4545
self._loaded: bool = False
4646
self._registry: list[str] = []
47-
self._first_free_address: int = 65
4847
self._registration_task: Task[None] | None = None
4948
self._start_node_discover: (
5049
Callable[[str, NodeType | None, bool], Awaitable[bool]] | None
5150
) = None
52-
self._full_scan_finished: Callable[[], Awaitable[None]] | None = None
5351
self._registration_scan_delay: float = CIRCLEPLUS_SCANREQUEST_MAINTENANCE
5452
self._scan_completed = False
5553
self._scan_completed_callback: Callable[[], Awaitable[None]] | None = None
@@ -111,10 +109,6 @@ def scan_completed_callback(self, callback: Callable[[], Awaitable[None]]) -> No
111109
"""Register method to be called when a node is found."""
112110
self._scan_completed_callback = callback
113111

114-
def full_scan_finished(self, callback: Callable[[], Awaitable[None]]) -> None:
115-
"""Register method to be called when full scan is finished."""
116-
self._full_scan_finished = callback
117-
118112
# endregion
119113

120114
async def start(self) -> None:
@@ -191,9 +185,6 @@ async def update_missing_registrations_circleplus(self) -> None:
191185
"'empty'" if mac == "" else f"set to {mac}",
192186
)
193187
if mac == "":
194-
self._first_free_address = min(
195-
self._first_free_address, currentaddress
196-
)
197188
continue
198189
_maintenance_registry.append(mac)
199190
if self.update_network_registration(mac):

0 commit comments

Comments
 (0)