remove unused code which won't work after the director vtable mods to use a List instead of a Hash

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-10-03 23:00:12 +00:00
commit ea9dc991cc
2 changed files with 0 additions and 29 deletions

View file

@ -991,12 +991,6 @@ Swig_methodclass(Node *n) {
return Getattr(n, k_parentnode);
}
int
Swig_directorbase(Node *n) {
Node *classNode = Swig_methodclass(n);
return (classNode && (Getattr(classNode, k_directorbase) != 0));
}
int
Swig_directorclass(Node *n) {
Node *classNode = Swig_methodclass(n);
@ -1004,27 +998,6 @@ Swig_directorclass(Node *n) {
return (Getattr(classNode, k_vtable) != 0);
}
int
Swig_directormethod(Node *n) {
Node *classNode = Swig_methodclass(n);
if (classNode) {
Node *vtable = Getattr(classNode, k_vtable);
if (vtable) {
String *name = Getattr(n, k_name);
String *decl = Getattr(n, k_decl);
String *local_decl = SwigType_typedef_resolve_all(decl);
String *method_id = NewStringf("%s|%s", name, local_decl);
Hash *item = Getattr(vtable, method_id);
Delete(method_id);
Delete(local_decl);
if (item) {
return (Getattr(item, k_director) != 0);
}
}
}
return 0;
}
Node *
Swig_directormap(Node *module, String *type) {
int is_void = !Cmp(type, "void");

View file

@ -513,9 +513,7 @@ extern int Swig_VarsetToFunction(Node *n, int flags);
/* --- Director Helpers --- */
extern Node *Swig_methodclass(Node *n);
extern int Swig_directorbase(Node *n);
extern int Swig_directorclass(Node *n);
extern int Swig_directormethod(Node *n);
extern Node *Swig_directormap(Node *n, String *type);
/* --- Legacy Typemap API (somewhat simplified, ha!) --- */