From 3b2501ca7b6071cda6d958263637ef4f39dbc391 Mon Sep 17 00:00:00 2001 From: anthony Date: Fri, 7 Jan 2011 23:10:22 -0800 Subject: [PATCH] remove unused code --- .../xen/resource/CitrixResourceBase.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java b/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java index cdc6abdeead..b51c5216c24 100644 --- a/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java +++ b/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java @@ -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 _pools = new HashMap(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; }