diff options
author | Johan Dahlin <johan@gnome.org> | 2010-09-02 23:35:09 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-09-02 23:45:33 -0300 |
commit | e9684fcc96c2de2ad1337e368cdb642cd6e58e4c (patch) | |
tree | b956e4d203b3a204d0657821411f623a022c77cc /giscanner/transformer.py | |
parent | d9f8c0002c9dbd9154b49d3b23c1bd85423760ab (diff) | |
download | gobject-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.py | 10 |
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('*', '') |