From f0bfb879798e87296e13063203d5b18a1aa1097f Mon Sep 17 00:00:00 2001 From: Johan Berntsson Date: Tue, 11 Mar 2008 04:40:39 +0000 Subject: Eliminated several compiler warning messages --- OpenSim/Region/Application/OpenSimMain.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 33d0999..fd3a57f 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -521,11 +521,6 @@ namespace OpenSim return udpServer; } - private static void CreateDefaultRegionInfoXml(string fileName) - { - new RegionInfo("DEFAULT REGION CONFIG", fileName,false); - } - protected override StorageManager CreateStorageManager(string connectionstring) { return new StorageManager(m_storageDll, connectionstring, m_storagePersistPrimInventories); @@ -1254,14 +1249,7 @@ namespace OpenSim /// The first out parameter describing the number of all the avatars in the Region server public void GetAvatarNumber(out int usernum) { - int accounter = 0; - - foreach (ScenePresence presence in m_sceneManager.GetCurrentSceneAvatars()) { - //presence.RegionHandle; - accounter++; - } - - usernum = accounter; + usernum = m_sceneManager.GetCurrentSceneAvatars().Count; } /// -- cgit v1.1