From 37fa6775488ab237a4537d49b92a8d52b0497b98 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 21 Jan 2009 21:14:17 +0000 Subject: * refactor: Extract caps related code from scene and put into a region module * No functional changes in this revision --- OpenSim/Region/Environment/Scenes/SceneBase.cs | 61 -------------------------- 1 file changed, 61 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 fafa933..e6e2c93 100644 --- a/OpenSim/Region/Environment/Scenes/SceneBase.cs +++ b/OpenSim/Region/Environment/Scenes/SceneBase.cs @@ -215,67 +215,6 @@ namespace OpenSim.Region.Environment.Scenes #endregion /// - /// XXX These two methods are very temporary - /// XXX Diva: this is really truly horrible; must...move...to...LL client...stack... - /// - protected Dictionary capsPaths = new Dictionary(); - protected Dictionary> childrenSeeds = new Dictionary>(); - public string GetCapsPath(UUID agentId) - { - if (capsPaths.ContainsKey(agentId)) - { - return capsPaths[agentId]; - } - - return null; - } - public Dictionary GetChildrenSeeds(UUID agentID) - { - Dictionary seeds = null; - if (childrenSeeds.TryGetValue(agentID, out seeds)) - return seeds; - return new Dictionary(); - } - - public void DropChildSeed(UUID agentID, ulong handle) - { - Dictionary seeds; - if (childrenSeeds.TryGetValue(agentID, out seeds)) - { - seeds.Remove(handle); - } - } - - public string GetChildSeed(UUID agentID, ulong handle) - { - Dictionary seeds; - if (childrenSeeds.TryGetValue(agentID, out seeds)) - { - return seeds[handle]; - } - return null; - } - - public void SetChildrenSeed(UUID agentID, Dictionary value) - { - //Console.WriteLine(" !!! Setting child seeds in {0} to {1}", RegionInfo.RegionName, value.Count); - childrenSeeds[agentID] = value; - } - - public void DumpChildrenSeeds(UUID agentID) - { - Console.WriteLine("================ ChildrenSeed {0} ================", RegionInfo.RegionName); - foreach (KeyValuePair kvp in childrenSeeds[agentID]) - { - uint x, y; - Utils.LongToUInts(kvp.Key, out x, out y); - x = x / Constants.RegionSize; - y = y / Constants.RegionSize; - Console.WriteLine(" >> {0}, {1}: {2}", x, y, kvp.Value); - } - } - - /// /// Returns a new unallocated local ID /// /// A brand new local ID -- cgit v1.1