core: type__delete_class_members() doesn't need a 'cu' arg

Since we stopped using per-cu obstacks we don't need it. If we ever
want to use it we can do per thread obstacks.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-06-30 10:07:14 -03:00
parent 50916756d5
commit f40900eba6
1 changed files with 3 additions and 3 deletions

View File

@ -1101,7 +1101,7 @@ static struct class_member *class_member__clone(const struct class_member *from)
return member;
}
static void type__delete_class_members(struct type *type, struct cu *cu)
static void type__delete_class_members(struct type *type)
{
struct class_member *pos, *next;
@ -1116,7 +1116,7 @@ void class__delete(struct class *class, struct cu *cu)
if (class == NULL)
return;
type__delete_class_members(&class->type, cu);
type__delete_class_members(&class->type);
free(class);
}
@ -1125,7 +1125,7 @@ void type__delete(struct type *type, struct cu *cu)
if (type == NULL)
return;
type__delete_class_members(type, cu);
type__delete_class_members(type);
free(type);
}