forked from organicmaps/organicmaps-tmp
Removed unused get_numerics function
This commit is contained in:
parent
13458c6b3e
commit
20fed0c0c4
3 changed files with 0 additions and 23 deletions
|
@ -113,12 +113,6 @@ class Condition:
|
|||
return set(["*"]) # unknown
|
||||
return set([self.params[0]])
|
||||
|
||||
def get_numerics(self):
|
||||
if self.type in ("<", ">", ">=", "<="):
|
||||
return self.params[0]
|
||||
else:
|
||||
return False
|
||||
|
||||
def test(self, tags):
|
||||
"""
|
||||
Test a hash against this condition
|
||||
|
|
|
@ -79,13 +79,6 @@ class Rule():
|
|||
break
|
||||
return a
|
||||
|
||||
def get_numerics(self):
|
||||
a = set()
|
||||
for condition in self.conditions:
|
||||
a.add(condition.get_numerics())
|
||||
a.discard(False)
|
||||
return a
|
||||
|
||||
|
||||
def _test_feature_compatibility(f1, f2, tags={}):
|
||||
"""
|
||||
|
|
|
@ -88,16 +88,6 @@ class StyleChooser:
|
|||
self.compatible_types = set()
|
||||
self.has_evals = False
|
||||
|
||||
def get_numerics(self):
|
||||
"""
|
||||
Returns a set of number-compared values.
|
||||
"""
|
||||
a = set()
|
||||
for r in self.ruleChains:
|
||||
a.update(r.get_numerics())
|
||||
a.discard(False)
|
||||
return a
|
||||
|
||||
def get_interesting_tags(self, ztype, zoom):
|
||||
"""
|
||||
Returns a set of tags that were used in here.
|
||||
|
|
Loading…
Add table
Reference in a new issue