diff options
Diffstat (limited to 'qom/object.c')
-rw-r--r-- | qom/object.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/qom/object.c b/qom/object.c index 23f481c..e89ffbe 100644 --- a/qom/object.c +++ b/qom/object.c @@ -1280,15 +1280,10 @@ ObjectProperty *object_class_property_find(ObjectClass *klass, const char *name, return prop; } -void object_property_del(Object *obj, const char *name, Error **errp) +void object_property_del(Object *obj, const char *name) { ObjectProperty *prop = g_hash_table_lookup(obj->properties, name); - if (!prop) { - error_setg(errp, "Property '.%s' not found", name); - return; - } - if (prop->release) { prop->release(obj, name, prop->opaque); } |