aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-07-24 17:30:17 +0200
committerKarel Kočí <cynerd@email.cz>2015-07-24 17:30:17 +0200
commitb074743821a729933a31bb5434ec807352743740 (patch)
treed60a28d117b125dc2558f584c8eb42097e580381
parenta1aff4508bf0e87ecc4736a3a196a43faca3ffa1 (diff)
downloadlinux-conf-perf-b074743821a729933a31bb5434ec807352743740.tar.gz
linux-conf-perf-b074743821a729933a31bb5434ec807352743740.tar.bz2
linux-conf-perf-b074743821a729933a31bb5434ec807352743740.zip
Remove unused function from utils
build_conf_map is not used anywhere. And plan is to change files with which it works. So it doesn't have any sense to keeping it there or even rewriting it.
-rw-r--r--scripts/utils.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/scripts/utils.py b/scripts/utils.py
index 522a68d..d138279 100644
--- a/scripts/utils.py
+++ b/scripts/utils.py
@@ -28,32 +28,6 @@ def build_symbol_map():
smap[int(w[0])] = w[1]
-def build_conf_map():
- """Generates global variable cmap from config_map_file and config_solved_file.
- cmap is dictionary containing list ([configuration], bool solved)
- cmap is rebuild every time this function is called.
- """
- global cmap
- cmap = dict()
- if os.path.isfile(sf(conf.config_map_file)):
- with open(sf(conf.config_map_file)) as f:
- for ln in f:
- w = ln.rstrip().split(sep=':')
- cf = list()
- for vr in w[1].split(sep=" "):
- if vf[0] == '-':
- cf.append(-1 * int(vf[1:]))
- cf.append(int(vf))
- cmap[w[0]] = [w[1], False]
-
- if os.path.isfile(sf(conf.config_solved_file)):
- with open(sf(conf.config_solved_file)) as f:
- for ln in f:
- try:
- cmap[ln.rstrip()][1] = True
- except KeyError:
- pass
-
def callsubprocess(process_name, process, show_output = True,
return_output = False, env=os.environ, allowed_exit_codes = [0]):
sprc = subprocess.Popen(process, stdout = subprocess.PIPE, env = env)