From 920ffaf24bc3bb5f8b7578f86efc1d5e9c52cec4 Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Thu, 19 Jul 2007 00:42:59 +0000
Subject: * Cleaned out remaining references to the old LocalStorage system in
prep. to move to StorageManager.
---
OpenSim/Region/Environment/Scenes/SceneBase.cs | 41 +-------------------------
1 file changed, 1 insertion(+), 40 deletions(-)
(limited to 'OpenSim/Region/Environment/Scenes/SceneBase.cs')
diff --git a/OpenSim/Region/Environment/Scenes/SceneBase.cs b/OpenSim/Region/Environment/Scenes/SceneBase.cs
index 4326553..2c50e4d 100644
--- a/OpenSim/Region/Environment/Scenes/SceneBase.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneBase.cs
@@ -48,7 +48,6 @@ namespace OpenSim.Region.Environment.Scenes
public TerrainEngine Terrain;
protected string m_datastore;
- public ILocalStorage localStorage;
protected object m_syncRoot = new object();
private uint m_nextLocalId = 8880000;
@@ -70,44 +69,6 @@ namespace OpenSim.Region.Environment.Scenes
public abstract void LoadWorldMap();
///
- /// Loads a new storage subsystem from a named library
- ///
- /// Storage Library
- /// Successful or not
- public bool LoadStorageDLL(string dllName)
- {
- Assembly pluginAssembly = Assembly.LoadFrom(dllName);
- ILocalStorage store = null;
-
- foreach (Type pluginType in pluginAssembly.GetTypes())
- {
- if (pluginType.IsPublic)
- {
- if (!pluginType.IsAbstract)
- {
- Type typeInterface = pluginType.GetInterface("ILocalStorage", true);
-
- if (typeInterface != null)
- {
- ILocalStorage plug = (ILocalStorage)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
- store = plug;
-
- store.Initialise(this.m_datastore);
- break;
- }
-
- typeInterface = null;
- }
- }
- }
- pluginAssembly = null;
- this.localStorage = store;
- return (store == null);
-
- }
-
-
- ///
/// Send the region heightmap to the client
///
/// Client to send to
@@ -173,7 +134,7 @@ namespace OpenSim.Region.Environment.Scenes
{
try
{
- this.localStorage.ShutDown();
+ //TODO: Add cleanup code for storage manager, etc.
}
catch (Exception e)
{
--
cgit v1.1