From 574a11558dad307ad12b3930c72256ba955f0714 Mon Sep 17 00:00:00 2001 From: Melanie Date: Sat, 12 Apr 2014 17:32:16 +0100 Subject: [PATCH] Refactor: Rename GetOtherSetting to GetSetting and make SetOtherSetting private --- OpenSim/Framework/RegionInfo.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index 6b3adccfe1..ce14b58a3e 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs @@ -151,7 +151,7 @@ namespace OpenSim.Framework public uint RegionSizeY = Constants.RegionSize; public uint RegionSizeZ = Constants.RegionHeight; - private Dictionary m_otherSettings = new Dictionary(); + private Dictionary m_extraSettings = new Dictionary(); // Apparently, we're applying the same estatesettings regardless of whether it's local or remote. @@ -501,20 +501,20 @@ namespace OpenSim.Framework m_internalEndPoint = tmpEPE; } - public string GetOtherSetting(string key) + public string GetSetting(string key) { string val; string keylower = key.ToLower(); - if (m_otherSettings.TryGetValue(keylower, out val)) + if (m_extraSettings.TryGetValue(keylower, out val)) return val; m_log.DebugFormat("[RegionInfo] Could not locate value for parameter {0}", key); return null; } - public void SetOtherSetting(string key, string value) + private void SetExtraSetting(string key, string value) { string keylower = key.ToLower(); - m_otherSettings[keylower] = value; + m_extraSettings[keylower] = value; } private void ReadNiniConfig(IConfigSource source, string name) @@ -738,7 +738,7 @@ namespace OpenSim.Framework foreach (String s in allKeys) { - SetOtherSetting(s, config.GetString(s)); + SetExtraSetting(s, config.GetString(s)); } }