qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC 3/4] tests: Remove tests for class properties


From: David Gibson
Subject: [Qemu-devel] [RFC 3/4] tests: Remove tests for class properties
Date: Thu, 29 Sep 2016 10:16:44 +1000

There are no-longer any users of QOM class properties (as opposed to
instance properties).  In anticipation of removing support for them,
remove tests for them from the testsuite.

Signed-off-by: David Gibson <address@hidden>
---
 tests/check-qom-proplist.c | 30 ++++++++++--------------------
 1 file changed, 10 insertions(+), 20 deletions(-)

diff --git a/tests/check-qom-proplist.c b/tests/check-qom-proplist.c
index a16cefc..e684949 100644
--- a/tests/check-qom-proplist.c
+++ b/tests/check-qom-proplist.c
@@ -124,25 +124,16 @@ static void dummy_init(Object *obj)
                              dummy_get_bv,
                              dummy_set_bv,
                              NULL);
-}
-
-
-static void dummy_class_init(ObjectClass *cls, void *data)
-{
-    object_class_property_add_bool(cls, "bv",
-                                   dummy_get_bv,
-                                   dummy_set_bv,
-                                   NULL);
-    object_class_property_add_str(cls, "sv",
-                                  dummy_get_sv,
-                                  dummy_set_sv,
-                                  NULL);
-    object_class_property_add_enum(cls, "av",
-                                   "DummyAnimal",
-                                   dummy_animal_map,
-                                   dummy_get_av,
-                                   dummy_set_av,
-                                   NULL);
+    object_property_add_str(obj, "sv",
+                            dummy_get_sv,
+                            dummy_set_sv,
+                            NULL);
+    object_property_add_enum(obj, "av",
+                             "DummyAnimal",
+                             dummy_animal_map,
+                             dummy_get_av,
+                             dummy_set_av,
+                             NULL);
 }
 
 
@@ -161,7 +152,6 @@ static const TypeInfo dummy_info = {
     .instance_init = dummy_init,
     .instance_finalize = dummy_finalize,
     .class_size = sizeof(DummyObjectClass),
-    .class_init = dummy_class_init,
 };
 
 
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]