Skip to content

Commit

Permalink
feat: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
aimxhaisse committed Nov 21, 2023
1 parent 8c58bf9 commit 99c4837
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions eth_validator_watcher/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,20 +170,6 @@ def apply_mask(items: list[Any], mask: list[bool]) -> set[Any]:
return set(item for item, bit in zip(items, mask) if bit)


def load_pubkeys_from_file(path: Path) -> set[str]:
"""Load public keys from a file.
Parameters:
path: A path to a file containing a list of public keys.
Returns the corresponding set of public keys.
"""
with path.open() as file_descriptor:
return set(
(eth2_address_lower_0x_prefixed(line.strip()) for line in file_descriptor)
)


def get_our_pubkeys(
watched_keys: List[WatchedKeyConfig] | None,
web3signer: Web3Signer | None,
Expand Down

0 comments on commit 99c4837

Please sign in to comment.