qom: make object_finalize static

It is not used anymore, and there is no need to make it public.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Paolo Bonzini 2012-11-23 09:47:16 +01:00 committed by Anthony Liguori
parent 64b625f4b2
commit 339c2708e7
2 changed files with 1 additions and 10 deletions

View File

@ -504,15 +504,6 @@ void object_initialize_with_type(void *data, Type type);
*/
void object_initialize(void *obj, const char *typename);
/**
* object_finalize:
* @obj: The object to finalize.
*
* This function destroys and object without freeing the memory associated with
* it.
*/
void object_finalize(void *obj);
/**
* object_dynamic_cast:
* @obj: The object to cast.

View File

@ -379,7 +379,7 @@ static void object_deinit(Object *obj, TypeImpl *type)
}
}
void object_finalize(void *data)
static void object_finalize(void *data)
{
Object *obj = data;
TypeImpl *ti = obj->class->type;