* i386b-nat.c: Comment changes.
[deliverable/binutils-gdb.git] / gdb / symtab.c
index 7146c35e64cd72b7166aca15b56abbe4357a39fc..fdda171bb8d519c7ab57ca0e36c20af6f7cc493c 100644 (file)
@@ -1269,31 +1269,6 @@ find_pc_line_pc_range (pc, startptr, endptr)
   return sal.symtab != 0;
 }
 \f
-struct type *
-find_nested_type (type, name)
-     struct type *type;
-     char *name;
-{
-  int i;
-  for (i = TYPE_NFIELDS (type) - 1; i >= TYPE_N_BASECLASSES (type); i--)
-    {
-      char *t_field_name = TYPE_FIELD_NAME (type, i);
-
-      if (t_field_name && !strcmp (t_field_name, name))
-       if (TYPE_FIELD_NESTED (type, i))
-         {
-           return TYPE_FIELD_TYPE (type, i);
-         }
-    }
-  for (i = TYPE_N_BASECLASSES (type) - 1; i >= 0; i--)
-    {
-      struct type * t = find_nested_type (TYPE_BASECLASS (type, i), name);
-      if (t)
-       return t;
-    }
-  return NULL;
-}
-
 /* If P is of the form "operator[ \t]+..." where `...' is
    some legitimate operator text, return a pointer to the
    beginning of the substring of the operator text.
This page took 0.024736 seconds and 4 git commands to generate.