]> xenbits.xensource.com Git - libvirt.git/commitdiff
virJSONValue: remove unused 'protect' property
authorJán Tomko <jtomko@redhat.com>
Thu, 10 May 2018 12:25:57 +0000 (14:25 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 11 May 2018 11:23:06 +0000 (13:23 +0200)
The last usage was removed by commit <167028e>

Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/util/virjson.c

index bb4e3c257b7a691f4dce772d3a3ebbb790d43a5f..0559d40b64a5b263133d604b35c9b0430409720f 100644 (file)
@@ -78,7 +78,6 @@ struct _virJSONArray {
 
 struct _virJSONValue {
     int type; /* enum virJSONType */
-    bool protect; /* prevents deletion when embedded in another object */
 
     union {
         virJSONObject object;
@@ -395,7 +394,7 @@ void
 virJSONValueFree(virJSONValuePtr value)
 {
     size_t i;
-    if (!value || value->protect)
+    if (!value)
         return;
 
     switch ((virJSONType) value->type) {