summaryrefslogtreecommitdiff
path: root/giscanner/transformer.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-02 23:35:09 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-02 23:45:33 -0300
commite9684fcc96c2de2ad1337e368cdb642cd6e58e4c (patch)
treeb956e4d203b3a204d0657821411f623a022c77cc /giscanner/transformer.py
parentd9f8c0002c9dbd9154b49d3b23c1bd85423760ab (diff)
downloadgobject-introspection-e9684fcc96c2de2ad1337e368cdb642cd6e58e4c.tar.gz
[scanner] Move a function from transformer to ast
It doesn't use any internal state, so it can easily be moved over to the type as a factory function
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r--giscanner/transformer.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index a1f6193b..4cb167cc 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -730,16 +730,6 @@ Note that type resolution may not succeed."""
typeval.ctype = None
return typeval
- def create_type_from_gtype_name(self, gtype_name):
- """Parse a GType name (as from g_type_name()), and return a
-Type instance. Note that this function performs namespace lookup,
-in contrast to the other create_type() functions."""
- # First, is it a fundamental?
- fundamental = ast.type_names.get(gtype_name)
- if fundamental is not None:
- return ast.Type(target_fundamental=fundamental.target_fundamental)
- return ast.Type(gtype_name=gtype_name)
-
def _resolve_type_from_ctype(self, typeval):
assert typeval.ctype is not None
pointer_stripped = typeval.ctype.replace('*', '')