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 2018-05-10 14:25:57 +02:00
parent f33d02c11f
commit 50b4e9afe2
1 changed files with 1 additions and 2 deletions

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) {