[gobject-introspection] transformer: Remove annotations



commit 2dfdfdf42516bc07a5c2159ae5c696038567b9a1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Mar 27 16:28:36 2013 -0400

    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, 0 insertions(+), 5 deletions(-)
---
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index deefcf9..8ccd1f0 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 2708f0a..f1aa165 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]