summaryrefslogtreecommitdiff
path: root/pywal/util.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-10-18 08:06:57 +1100
committerGitHub <noreply@github.com>2018-10-18 08:06:57 +1100
commitcfbd5353cffb1ff5ba0de4545abd8a12f0dad919 (patch)
tree3bb26c975191a9abf5e8d2f95d5853255f0eb8df /pywal/util.py
parentf38d630a63d9d33f3d43443d0e0f7c9a3702bf24 (diff)
Revert "Hash file for cache filename"
Diffstat (limited to 'pywal/util.py')
-rw-r--r--pywal/util.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/pywal/util.py b/pywal/util.py
index 10fb42c..0557cc4 100644
--- a/pywal/util.py
+++ b/pywal/util.py
@@ -2,7 +2,6 @@
Misc helper functions.
"""
import colorsys
-import hashlib
import json
import logging
import os
@@ -179,14 +178,3 @@ def get_pid(name):
return False
return True
-
-
-def hashf(fpath):
- """Get the md5 hash of a file."""
- return hashlib.md5(file_bytes(open(fpath, 'rb'))).hexdigest()
-
-
-def file_bytes(fpath):
- """Helper function to read file."""
- with fpath:
- return fpath.read()