Get rid of useless VIR_STORAGE_FILE_FEATURE_NONE

It's not used anywhere except for the switch in
virStorageBackendCreateQemuImgOpts, where leaving it in causes
a dead code coverity warning and omitting it breaks compilation
because of unhandled enum value.

Introduced by 6298f74.
This commit is contained in:
Ján Tomko 2013-06-24 08:35:59 +02:00
parent 695593fe00
commit 7a99eb912f
2 changed files with 2 additions and 3 deletions

View File

@ -666,7 +666,7 @@ virStorageBackendCreateQemuImgOpts(char **opts,
goto error; goto error;
} }
break; break;
case VIR_STORAGE_FILE_FEATURE_NONE:
case VIR_STORAGE_FILE_FEATURE_LAST: case VIR_STORAGE_FILE_FEATURE_LAST:
; ;
} }

View File

@ -53,8 +53,7 @@ enum virStorageFileFormat {
VIR_ENUM_DECL(virStorageFileFormat); VIR_ENUM_DECL(virStorageFileFormat);
enum virStorageFileFeature { enum virStorageFileFeature {
VIR_STORAGE_FILE_FEATURE_NONE = -1, VIR_STORAGE_FILE_FEATURE_LAZY_REFCOUNTS = 0,
VIR_STORAGE_FILE_FEATURE_LAZY_REFCOUNTS,
VIR_STORAGE_FILE_FEATURE_LAST VIR_STORAGE_FILE_FEATURE_LAST
}; };