[gobject-introspection/wip/transformer] [transformer] Remove unused methods
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/transformer] [transformer] Remove unused methods
- Date: Sat, 28 Aug 2010 14:11:52 +0000 (UTC)
commit 1b545c985df58ace17188fed20902c20bb545b8b
Author: Johan Dahlin <johan gnome org>
Date: Sat Aug 28 10:47:33 2010 -0300
[transformer] Remove unused methods
giscanner/transformer.py | 44 --------------------------------------------
1 files changed, 0 insertions(+), 44 deletions(-)
---
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 382490a..c01f592 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -757,23 +757,6 @@ it is always biggest (i.e. last)."""
return callback
- def create_type_from_user_string(self, typestr):
- """Parse a C type string (as might be given from an
- annotation) and resolve it. For compatibility, we can consume
-both GI type string (utf8, Foo.Bar) style, as well as C (char *, FooBar) style.
-
-Note that type resolution may not succeed."""
- if '.' in typestr:
- container = self._create_bare_container_type(typestr)
- if container:
- return container
- return self._namespace.type_from_name(typestr)
- typeval = self.create_type_from_ctype_string(typestr)
- self.resolve_type(typeval)
- # Explicitly clear out the c_type; there isn't one in this case.
- typeval.ctype = None
- return typeval
-
def _resolve_type_from_ctype(self, typeval):
pointer_stripped = typeval.ctype.replace('*', '')
try:
@@ -807,30 +790,3 @@ Note that type resolution may not succeed."""
if nsname is None:
return item.name
return '%s.%s' % (nsname, item.name)
-
- def gtypename_to_giname(self, gtname, names):
- resolved = names.type_names.get(gtname)
- if resolved:
- return self._typepair_to_str(resolved)
- resolved = self._names.type_names.get(gtname)
- if resolved:
- return self._typepair_to_str(resolved)
- raise KeyError("Failed to resolve GType name: %r" % (gtname, ))
-
- def ctype_of(self, obj):
- if hasattr(obj, 'ctype'):
- return obj.ctype
- elif hasattr(obj, 'symbol'):
- return obj.symbol
- else:
- return None
-
- def follow_aliases(self, type_name, names):
- while True:
- resolved = names.aliases.get(type_name)
- if resolved:
- (ns, alias) = resolved
- type_name = alias.target
- else:
- break
- return type_name
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]