mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
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>
This commit is contained in:
parent
5c099537a6
commit
b76facc35b
2 changed files with 10 additions and 24 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue