Explorar o código

[desktop] Remove unused context from metric definition

Erick Tryzelaar %!s(int64=10) %!d(string=hai) anos
pai
achega
53480d4839
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      desktop/core/src/desktop/lib/metrics/registry.py

+ 1 - 3
desktop/core/src/desktop/lib/metrics/registry.py

@@ -78,15 +78,13 @@ class MetricsRegistry(object):
 class MetricDefinition(object):
 class MetricDefinition(object):
   def __init__(self, name, label, description, numerator,
   def __init__(self, name, label, description, numerator,
       denominator=None,
       denominator=None,
-      weighting_metric_name=None,
-      context=None):
+      weighting_metric_name=None):
     self.name = name
     self.name = name
     self.label = label
     self.label = label
     self.description = description
     self.description = description
     self.numerator = numerator
     self.numerator = numerator
     self.denominator = denominator
     self.denominator = denominator
     self.weighting_metric_name = weighting_metric_name
     self.weighting_metric_name = weighting_metric_name
-    self.context = context
 
 
     assert self.name is not None
     assert self.name is not None
     assert self.label is not None
     assert self.label is not None