@@ -1133,7 +1133,6 @@ storagePoolDelete(virStoragePoolPtr obj,
{
virStoragePoolObjPtr pool;
virStorageBackendPtr backend;
- char *stateFile = NULL;
int ret = -1;
if (!(pool = virStoragePoolObjFromStoragePool(obj)))
@@ -1161,14 +1160,6 @@ storagePoolDelete(virStoragePoolPtr obj,
goto cleanup;
}
- if (!(stateFile = virFileBuildPath(driver->stateDir,
- pool->def->name,
- ".xml")))
- goto cleanup;
-
- unlink(stateFile);
- VIR_FREE(stateFile);
-
if (!backend->deletePool) {
virReportError(VIR_ERR_NO_SUPPORT,
"%s", _("pool does not support pool deletion"));