diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-03-27 16:28:36 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-05-07 13:39:35 -0400 |
commit | 2dfdfdf42516bc07a5c2159ae5c696038567b9a1 (patch) | |
tree | 987073957bc583828669d943400109240d0bfb0c /giscanner | |
parent | a0185528a17378b6e6e7bc458f34b1f3719cc420 (diff) | |
download | gobject-introspection-2dfdfdf42516bc07a5c2159ae5c696038567b9a1.tar.gz |
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
Diffstat (limited to 'giscanner')
-rwxr-xr-x | giscanner/scannermain.py | 1 | ||||
-rw-r--r-- | giscanner/transformer.py | 4 |
2 files changed, 0 insertions, 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 = {} # <string namespace -> 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 |