[gobject-introspection] [scanner] Remove a bunch of unused functions
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] [scanner] Remove a bunch of unused functions
- Date: Mon, 6 Sep 2010 16:06:12 +0000 (UTC)
commit 6cd99f5aca9cac016b6fd1faf5a0402fe384b4a7
Author: Johan Dahlin <johan gnome org>
Date: Mon Sep 6 11:21:39 2010 -0300
[scanner] Remove a bunch of unused functions
giscanner/ast.py | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 0b9520d..551dbb1 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -348,11 +348,6 @@ returned."""
target = '%s.%s' % (self.name, name)
return Type(target_giname=target, ctype=ctype)
- def contains_ident(self, ident):
- """Return True if this namespace should contain the given C
-identifier string."""
- return any(ident.startswith(prefix) for prefix in self.identifier_prefixes)
-
def append(self, node, replace=False):
previous = self._names.get(node.name)
if previous is not None:
@@ -484,9 +479,6 @@ GIName. It's possible for nodes to contain or point to other nodes."""
def __repr__(self):
return '%s(%r)' % (self.__class__.__name__, self.name)
- def remove_matching_children(self, pred):
- pass
-
def inherit_file_positions(self, node):
self.file_positions.update(node.file_positions)
@@ -717,11 +709,6 @@ class Record(Node):
if field.anonymous_node is not None:
field.anonymous_node.walk(callback, chain)
- def remove_matching_children(self, pred):
- self.fields = filter(pred, self.fields)
- self.constructors = filter(pred, self.constructors)
- self.methods = filter(pred, self.methods)
-
class Field(Annotated):
@@ -761,12 +748,6 @@ class Class(Node):
self.properties = []
self.fields = []
- def remove_matching_children(self, pred):
- self.methods = filter(pred, self.methods)
- self.constructors = filter(pred, self.constructors)
- self.properties = filter(pred, self.properties)
- self.fields = filter(pred, self.fields)
-
def _walk(self, callback, chain):
for meth in self.methods:
meth.walk(callback, chain)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]