[gobject-introspection/wip/docs: 8/11] transformer: Remove annotations



commit 9670991f14c3af6a2349e424cecd58583290dd99
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?

 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 42867f0..e3c0084 100755
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -455,7 +455,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 3513fc8..353f125 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]