From: Ondrej Lichtner <olichtne(a)redhat.com>
This functionality is now handled by the PerfRepoMapping class. Keeping
the module as other functions will be added later.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/PerfRepoUtils.py | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/lnst/Controller/PerfRepoUtils.py b/lnst/Controller/PerfRepoUtils.py
index a8fbb6b..4d30110 100644
--- a/lnst/Controller/PerfRepoUtils.py
+++ b/lnst/Controller/PerfRepoUtils.py
@@ -11,23 +11,3 @@ __author__ = """
olichtne(a)redhat.com (Ondrej Lichtner)
"""
-import re
-
-def parse_id_mapping(filename):
- line_re = re.compile(r"^(\w+)\s*=\s*(\w+)\s*$")
- res_dict = {}
- try:
- with open(filename) as f:
- for line in f:
- match = line_re.match(line)
- if match is not None:
- res_dict[match.group(1)] = match.group(2)
- except:
- return None
- return res_dict
-
-def get_id(mapping, key):
- try:
- return mapping[key]
- except (KeyError, TypeError):
- return None
--
2.6.1