mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
f33d02c11f
commit
50b4e9afe2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue