From b76facc35b0153cee5a8972f8a3c70694a7e3913 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 25 Jan 2013 14:12:39 +0100 Subject: 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 Signed-off-by: Anthony Liguori --- qom/object.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'qom') diff --git a/qom/object.c b/qom/object.c index 034f15cdec..563e45b0cc 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)) { -- cgit v1.2.3-55-g7522