Skip to content

Commit

Permalink
remove unused checkformat_hex_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
dholth committed Aug 21, 2023
1 parent b9f20cb commit 641ee04
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions conda_content_trust/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,18 +442,6 @@ def checkformat_hex_key(k):
raise ValueError("Hex representations of keys must use only lowercase.")


def checkformat_hex_hash(h):
checkformat_hex_string(h)

if 64 != len(h):
raise ValueError("Expected a 64-character hex string representing a hash.")

# Prevent multiple possible representations. There are security
# implications.
if h.lower() != h:
raise ValueError("Hex representations of hashes must use only lowercase.")


def checkformat_list_of_hex_keys(value):
"""
Note that this rejects any list of keys that includes any exact duplicates.
Expand Down

0 comments on commit 641ee04

Please sign in to comment.