Skip to content

Commit

Permalink
⚰️ Remove unused random_letters function
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed May 9, 2024
1 parent 92f5616 commit f9ecc56
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions data_safe_haven/functions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
alphanumeric,
b64encode,
password,
random_letters,
replace_separators,
sanitise_sre_name,
seeded_uuid,
Expand All @@ -21,7 +20,6 @@
"b64encode",
"ordered_private_dns_zones",
"password",
"random_letters",
"replace_separators",
"sanitise_sre_name",
"seeded_uuid",
Expand Down
5 changes: 0 additions & 5 deletions data_safe_haven/functions/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ def password(length: int) -> str:
return password_


def random_letters(length: int) -> str:
"""Generate a string of 'length' random letters."""
return "".join(secrets.choice(string.ascii_letters) for _ in range(length))


def replace_separators(input_string: str, separator: str = "") -> str:
"""Return a string using underscores as a separator"""
return (
Expand Down

0 comments on commit f9ecc56

Please sign in to comment.