remove unused code

This commit is contained in:
anthony 2011-01-07 23:10:22 -08:00
parent fa23bcd746
commit 3b2501ca7b
1 changed files with 0 additions and 18 deletions

View File

@ -244,7 +244,6 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
protected String _consolidationFunction = "AVERAGE";
protected int _pollingIntervalInSeconds = 60;
protected StorageLayer _storage;
protected boolean _canBridgeFirewall = false;
protected HashMap<StoragePoolType, StoragePoolResource> _pools = new HashMap<StoragePoolType, StoragePoolResource>(5);
@ -4312,23 +4311,6 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
if (_patchPath == null) {
throw new ConfigurationException("Unable to find all of patch files for xenserver");
}
_storage = (StorageLayer) params.get(StorageLayer.InstanceConfigKey);
if (_storage == null) {
value = (String) params.get(StorageLayer.ClassConfigKey);
if (value == null) {
value = "com.cloud.storage.JavaStorageLayer";
}
try {
Class<?> clazz = Class.forName(value);
_storage = (StorageLayer) ComponentLocator.inject(clazz);
_storage.configure("StorageLayer", params);
} catch (ClassNotFoundException e) {
throw new ConfigurationException("Unable to find class " + value);
}
}
return true;
}