mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 20:02:21 +00:00
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 {
|
struct _virJSONValue {
|
||||||
int type; /* enum virJSONType */
|
int type; /* enum virJSONType */
|
||||||
bool protect; /* prevents deletion when embedded in another object */
|
|
||||||
|
|
||||||
union {
|
union {
|
||||||
virJSONObject object;
|
virJSONObject object;
|
||||||
@ -395,7 +394,7 @@ void
|
|||||||
virJSONValueFree(virJSONValuePtr value)
|
virJSONValueFree(virJSONValuePtr value)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
if (!value || value->protect)
|
if (!value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
switch ((virJSONType) value->type) {
|
switch ((virJSONType) value->type) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user