diff options
author | Constantin Shalnev <c.shalnev@corp.mail.ru> | 2015-08-11 12:58:37 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:00:41 +0300 |
commit | 20fed0c0c4eb78e994392b340da373660457df14 (patch) | |
tree | a01406ec01c28c645b8e3022fb9ef2238af19271 /tools | |
parent | 13458c6b3e3fde2085e7593f167e1adfebbe85e2 (diff) |
Removed unused get_numerics function
Diffstat (limited to 'tools')
-rw-r--r-- | tools/kothic/mapcss/Condition.py | 6 | ||||
-rw-r--r-- | tools/kothic/mapcss/Rule.py | 7 | ||||
-rw-r--r-- | tools/kothic/mapcss/StyleChooser.py | 10 |
3 files changed, 0 insertions, 23 deletions
diff --git a/tools/kothic/mapcss/Condition.py b/tools/kothic/mapcss/Condition.py index d7587a550d..6ef03b67c2 100644 --- a/tools/kothic/mapcss/Condition.py +++ b/tools/kothic/mapcss/Condition.py @@ -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 diff --git a/tools/kothic/mapcss/Rule.py b/tools/kothic/mapcss/Rule.py index 4e5ecba56c..a4cf8d4d35 100644 --- a/tools/kothic/mapcss/Rule.py +++ b/tools/kothic/mapcss/Rule.py @@ -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={}): """ diff --git a/tools/kothic/mapcss/StyleChooser.py b/tools/kothic/mapcss/StyleChooser.py index db152f3438..f585f7ba09 100644 --- a/tools/kothic/mapcss/StyleChooser.py +++ b/tools/kothic/mapcss/StyleChooser.py @@ -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. |