From c740a05495ed0a3d59af28d6437df337fd3515bf Mon Sep 17 00:00:00 2001 From: Andreas Florath Date: Wed, 26 Dec 2012 23:08:02 +0100 Subject: [PATCH] Removed unused analytics handling --- rmtoo/lib/BaseRMObject.py | 2 -- rmtoo/lib/Requirement.py | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/rmtoo/lib/BaseRMObject.py b/rmtoo/lib/BaseRMObject.py index 22a72c3c..c928990d 100644 --- a/rmtoo/lib/BaseRMObject.py +++ b/rmtoo/lib/BaseRMObject.py @@ -41,8 +41,6 @@ def __init__(self, tbhtags, content, rid, mods, config, type_str, self.record = None self.brmo = None - # The analytic modules store the results in this map: - self.analytics = {} if content != None: self.__input(content) diff --git a/rmtoo/lib/Requirement.py b/rmtoo/lib/Requirement.py index 4c3bfb47..ba707f74 100644 --- a/rmtoo/lib/Requirement.py +++ b/rmtoo/lib/Requirement.py @@ -76,14 +76,3 @@ def get_efe_or_0(self): def is_implementable(self): return self.values["Class"].is_implementable() - - def write_analytics_result(self, mstderr): - '''Write out the analytics results.''' - for k, v in sorted(self.analytics.items(), - key=operator.itemgetter(0)): - if v[0] < 0: - mstderr.write("+++ Error:Analytics:%s:%s:result is '%+3d'\n" - % (k, self.id, v[0])) - for l in v[1]: - mstderr.write("+++ Error:Analytics:%s:%s:%s\n" % - (k, self.id, l))