From 2dfdfdf42516bc07a5c2159ae5c696038567b9a1 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 27 Mar 2013 16:28:36 -0400 Subject: transformer: Remove annotations The transformer doesn't need the annotations, so why are we giving it to it? https://bugzilla.gnome.org/show_bug.cgi?id=699854 --- giscanner/scannermain.py | 1 - giscanner/transformer.py | 4 ---- 2 files changed, 5 deletions(-) diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index deefcf99..8ccd1f09 100755 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -452,7 +452,6 @@ def scanner_main(args): blocks = ap.parse(ss.get_comments()) # Transform the C symbols into AST nodes - transformer.set_annotations(blocks) transformer.parse(ss.get_symbols()) if not options.header_only: diff --git a/giscanner/transformer.py b/giscanner/transformer.py index 2708f0a6..f1aa165d 100644 --- a/giscanner/transformer.py +++ b/giscanner/transformer.py @@ -57,7 +57,6 @@ class Transformer(object): self._parsed_includes = {} # Namespace> self._includepaths = [] self._passthrough_mode = False - self._annotations = {} def get_pkgconfig_packages(self): return self._pkg_config_packages @@ -68,9 +67,6 @@ class Transformer(object): def set_passthrough_mode(self): self._passthrough_mode = True - def set_annotations(self, annotations): - self._annotations = annotations - def _append_new_node(self, node): original = self._namespace.get(node.name) # Special case constants here; we allow duplication to sort-of -- cgit v1.2.1