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

Ján Tomko posted 12 patches 7 years, 7 months ago
[libvirt] [PATCHv2 01/12] virJSONValue: remove unused 'protect' property
Posted by Ján Tomko 7 years, 7 months ago
The last usage was removed by commit <167028e>

Signed-off-by: Ján Tomko <jtomko@redhat.com>
---
 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@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCHv2 01/12] virJSONValue: remove unused 'protect' property
Posted by Peter Krempa 7 years, 7 months ago
On Thu, May 10, 2018 at 18:44:13 +0200, Ján Tomko wrote:
> The last usage was removed by commit <167028e>
> 
> Signed-off-by: Ján Tomko <jtomko@redhat.com>
> ---
>  src/util/virjson.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

ACK, cool that we can get rid of it.
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list