From 50b4e9afe235b3c688894cee05b94e84ea61d655 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A1n=20Tomko?= Date: Thu, 10 May 2018 14:25:57 +0200 Subject: [PATCH] virJSONValue: remove unused 'protect' property MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The last usage was removed by commit <167028e> Signed-off-by: Ján Tomko --- 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 bb4e3c257b..0559d40b64 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.39.5