From 288e34ab51c7109da3f9034ff57b039932d4c3d1 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 22 Nov 2010 22:20:52 +0100 Subject: [PATCH] Remove unused load_hash function. --- buildfarm/util.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/buildfarm/util.py b/buildfarm/util.py index 3b18164c..3739ebaa 100644 --- a/buildfarm/util.py +++ b/buildfarm/util.py @@ -34,22 +34,6 @@ def load_list(fname): return ret -def load_hash(fname): - """load a hash from a file, using : to separate""" - lines = load_list(fname) - ret = {} - for l in lines: - try: - (key, value) = l.split(":", 1) - except ValueError: - pass # Raise error ?? - else: - key = key.rstrip() - value = value.lstrip().rstrip("\n") - ret[key] = value - return ret - - def FileLoad(filename): """read a file into a string""" f = open(filename, 'r') -- 2.34.1