summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2024-11-28 18:43:21 +0100
committerGitHub <noreply@github.com>2024-11-28 18:43:21 +0100
commit67d494fa0b5a418b1a2979f2e935eb6118d6052e (patch)
treef7057cb716e4a5927d0968ae97afb836fd86a8cf
parente37e53cfe8d2fc9640872ceccd78a8edc5227201 (diff)
downloadspack-67d494fa0b5a418b1a2979f2e935eb6118d6052e.tar.gz
spack-67d494fa0b5a418b1a2979f2e935eb6118d6052e.tar.bz2
spack-67d494fa0b5a418b1a2979f2e935eb6118d6052e.tar.xz
spack-67d494fa0b5a418b1a2979f2e935eb6118d6052e.zip
filesystem.py: remove unused md5sum (#47832)
-rw-r--r--lib/spack/llnl/util/filesystem.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py
index 4732924572..8f9590d284 100644
--- a/lib/spack/llnl/util/filesystem.py
+++ b/lib/spack/llnl/util/filesystem.py
@@ -2774,22 +2774,6 @@ def prefixes(path):
@system_path_filter
-def md5sum(file):
- """Compute the MD5 sum of a file.
-
- Args:
- file (str): file to be checksummed
-
- Returns:
- MD5 sum of the file's content
- """
- md5 = hashlib.md5()
- with open(file, "rb") as f:
- md5.update(f.read())
- return md5.digest()
-
-
-@system_path_filter
def remove_directory_contents(dir):
"""Remove all contents of a directory."""
if os.path.exists(dir):