don't see why we need this code, so remove it

This commit is contained in:
edison 2010-12-20 18:07:10 -08:00
parent 1597671e73
commit 1cc03c9a4a
1 changed files with 1 additions and 7 deletions

View File

@ -66,8 +66,6 @@ public class FirstFitStoragePoolAllocator extends AbstractStoragePoolAllocator {
for (StoragePoolVO pool: pools) {
if (checkPool(avoid, pool, dskCh, template, null, vm, sc)) {
return pool;
} else {
pools.remove(pool);
}
}
@ -75,10 +73,6 @@ public class FirstFitStoragePoolAllocator extends AbstractStoragePoolAllocator {
s_logger.debug("Unable to find any storage pool");
}
if (_dontMatter && pools.size() > 0) {
return pools.get(0);
} else {
return null;
}
return null;
}
}