remove unused code

This commit is contained in:
anthony 2011-01-14 17:14:42 -08:00
parent 16b52c9fa0
commit cfe1d99701
1 changed files with 0 additions and 18 deletions

View File

@ -250,7 +250,6 @@ public abstract class CitrixResourceBase implements ServerResource {
protected String _consolidationFunction = "AVERAGE";
protected int _pollingIntervalInSeconds = 60;
protected StorageLayer _storage;
protected boolean _canBridgeFirewall = false;
protected boolean _isOvs = false;
protected HashMap<StoragePoolType, StoragePoolResource> _pools = new HashMap<StoragePoolType, StoragePoolResource>(5);
@ -4158,23 +4157,6 @@ public abstract class CitrixResourceBase implements ServerResource {
if (_host.uuid == null) {
throw new ConfigurationException("Unable to get the uuid");
}
_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;
}