From: Scott Worley Date: Thu, 10 Jul 2025 00:17:56 +0000 (-0700) Subject: Remove unused to_Digest32() X-Git-Tag: v3.3.1~2 X-Git-Url: http://git.scottworley.com/pinch/commitdiff_plain/a222b37dee8407750871aa71bedd21317d881e89?hp=b407364e422fb34a5ca6313032bf87cbe1b14649 Remove unused to_Digest32() --- diff --git a/pinch.py b/pinch.py index 40ebf1b..dcc972c 100644 --- a/pinch.py +++ b/pinch.py @@ -335,18 +335,6 @@ def to_Digest16(v: Verification, digest32: Digest32) -> Digest16: return Digest16(process.stdout.decode().strip()) -def to_Digest32(v: Verification, digest16: Digest16) -> Digest32: - v.status('Converting digest to base32') - process = subprocess.run(_NIX_COMMAND + [ - 'to-base32', - '--type', - 'sha256', - digest16], - stdout=subprocess.PIPE) - v.result(process.returncode == 0) - return Digest32(process.stdout.decode().strip()) - - def fetch_with_nix_prefetch_url( v: Verification, url: str,