summaryrefslogtreecommitdiff
path: root/giscanner/transformer.py
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-08-14 15:57:29 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-10-08 20:54:08 +0200
commit9caabe68c8e53d51c2f3cae59673a2fbc54afa5f (patch)
treefc8c27067335336be4f26a4e0d3b114ec623f7b6 /giscanner/transformer.py
parenta52dd2c3cf240c8b6b621305b2f80d76eadc7a64 (diff)
downloadgobject-introspection-9caabe68c8e53d51c2f3cae59673a2fbc54afa5f.tar.gz
giscanner: remove dead code
Last call sites where removed in 36aa515f1036978ced8d4ffb808260844f7229e0 about 3 years ago.
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r--giscanner/transformer.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 75713474..b9c8ea62 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -615,20 +615,6 @@ raise ValueError."""
return canonical
- def parse_ctype(self, ctype, is_member=False):
- canonical = self._canonicalize_ctype(ctype)
-
- # Remove all pointers - we require standard calling
- # conventions. For example, an 'int' is always passed by
- # value (unless it's out or inout).
- derefed_typename = canonical.replace('*', '')
-
- # Preserve "pointerness" of struct/union members
- if (is_member and canonical.endswith('*') and derefed_typename in ast.basic_type_names):
- return 'gpointer'
- else:
- return derefed_typename
-
def _create_type_from_base(self, source_type, is_parameter=False, is_return=False):
ctype = self._create_source_type(source_type)
complete_ctype = self._create_complete_source_type(source_type)
@@ -952,29 +938,6 @@ Note that type resolution may not succeed."""
return typeval.resolved
- def _typepair_to_str(self, item):
- nsname, item = item
- 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 resolve_aliases(self, typenode):
"""Removes all aliases from typenode, returns first non-alias
in the typenode alias chain. Returns typenode argument if it