]> xenbits.xensource.com Git - qemu-upstream-4.3-testing.git/commitdiff
qom: make object_finalize static
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 23 Nov 2012 08:47:16 +0000 (09:47 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 26 Nov 2012 19:41:01 +0000 (13:41 -0600)
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>
include/qemu/object.h
qom/object.c

index 5ddcb4aa5f33c84845ad2394ed70b3c1a541a18b..ed1f47f0509a0e938af176c0512bb693d1985b13 100644 (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.
index 3b502554505c0f4672a81a874319856b54f8da41..0739aa29431accdaa8c92e860318eb56452d2260 100644 (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;