[PATCHv2 01/12] virJSONValue: remove unused 'protect' property

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

 



The last usage was removed by commit <167028e>

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/util/virjson.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/util/virjson.c b/src/util/virjson.c
index dfe00d9280..92a15b28a1 100644
--- a/src/util/virjson.c
+++ b/src/util/virjson.c
@@ -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) {
-- 
2.16.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux