Skip to content

Commit

Permalink
⚰️ Remove unused b64decode function
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed May 9, 2024
1 parent b75d37f commit 42e276d
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 @@ -5,7 +5,6 @@
)
from .strings import (
alphanumeric,
b64decode,
b64encode,
hex_string,
password,
Expand All @@ -20,7 +19,6 @@
__all__ = [
"allowed_dns_lookups",
"alphanumeric",
"b64decode",
"b64encode",
"hex_string",
"ordered_private_dns_zones",
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 @@ -16,11 +16,6 @@ def sanitise_sre_name(name: str) -> str:
return alphanumeric(name).lower()


def b64decode(input_string: str) -> str:
"""Decode a Base64 string into a normal string."""
return base64.b64decode(input_string.encode("utf-8")).decode()


def b64encode(input_string: str) -> str:
"""Encode a normal string into a Base64 string."""
return base64.b64encode(input_string.encode("utf-8")).decode()
Expand Down

0 comments on commit 42e276d

Please sign in to comment.