aboutsummaryrefslogtreecommitdiff
path: root/qom
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-01-25 14:12:39 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-01 15:53:11 -0600
commitb76facc35b0153cee5a8972f8a3c70694a7e3913 (patch)
treee56d1d4482d9318300fb970fc370c13fb74d4eac /qom
parent5c099537a646370d85f9a0f6bc18371ceeeb14dc (diff)
downloadqemu-b76facc35b0153cee5a8972f8a3c70694a7e3913.zip
qemu-b76facc35b0153cee5a8972f8a3c70694a7e3913.tar.gz
qemu-b76facc35b0153cee5a8972f8a3c70694a7e3913.tar.bz2
qom: remove object_delete
This is now unused. Document the initial reference count of an object and when it will be freed/finalized. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qom')
-rw-r--r--qom/object.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/qom/object.c b/qom/object.c
index 034f15c..563e45b 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -417,13 +417,6 @@ Object *object_new(const char *typename)
return object_new_with_type(ti);
}
-void object_delete(Object *obj)
-{
- object_unparent(obj);
- g_assert(obj->ref == 1);
- object_unref(obj);
-}
-
Object *object_dynamic_cast(Object *obj, const char *typename)
{
if (obj && object_class_dynamic_cast(object_get_class(obj), typename)) {