virJSONValue: remove unused 'protect' property

The last usage was removed by commit <167028e>

Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Ján Tomko committed 2018-05-11 13:23:06 +02:00
1 parent f33d02c11f
commit 50b4e9afe2
1 file changed
+1 -2
+1 -2
View 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) {