Skip to content

Commit

Permalink
Unused code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Dec 7, 2021
1 parent b9966ec commit c6503b2
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions fb_bus_connector_plugin/registry/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,6 @@ def append_input_register( # pylint: disable=too-many-arguments
register_pubsub_key_written: WriteKeyType = WriteKeyType.NO,
) -> InputRegisterRecord:
"""Append new register or replace existing register in registry"""
for record in self.__items.values():
if record.id == register_id and record.device_id == device_id:
self.remove(register_id=record.id)

break

register = InputRegisterRecord(
device_id=device_id,
register_id=register_id,
Expand Down Expand Up @@ -513,12 +507,6 @@ def append_output_register( # pylint: disable=too-many-arguments
register_pubsub_key_written: WriteKeyType = WriteKeyType.NO,
) -> OutputRegisterRecord:
"""Append new register or replace existing register in registry"""
for record in self.__items.values():
if record.id == register_id and record.device_id == device_id:
self.remove(register_id=record.id)

break

register = OutputRegisterRecord(
device_id=device_id,
register_id=register_id,
Expand Down Expand Up @@ -549,12 +537,6 @@ def append_attribute_register( # pylint: disable=too-many-arguments
register_pubsub_key_written: WriteKeyType = WriteKeyType.NO,
) -> AttributeRegisterRecord:
"""Append new attribute register or replace existing register in registry"""
for record in self.__items.values():
if record.id == register_id and record.device_id == device_id:
self.remove(register_id=record.id)

break

register = AttributeRegisterRecord(
device_id=device_id,
register_id=register_id,
Expand Down Expand Up @@ -586,12 +568,6 @@ def append_setting_register( # pylint: disable=too-many-arguments
register_pubsub_key_written: WriteKeyType = WriteKeyType.NO,
) -> SettingRegisterRecord:
"""Append new setting register or replace existing register in registry"""
for record in self.__items.values():
if record.id == register_id and record.device_id == device_id:
self.remove(register_id=record.id)

break

register = SettingRegisterRecord(
device_id=device_id,
register_id=register_id,
Expand Down

0 comments on commit c6503b2

Please sign in to comment.