From a462e440d5b5dca97f9b32fa41e24d763456ce97 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Tue, 29 Dec 2009 08:06:07 -0800 Subject: [PATCH] Better way of setting ServiceURLs --- OpenSim/Services/Interfaces/IUserService.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/OpenSim/Services/Interfaces/IUserService.cs b/OpenSim/Services/Interfaces/IUserService.cs index ecbb344d51..8279b9a76d 100644 --- a/OpenSim/Services/Interfaces/IUserService.cs +++ b/OpenSim/Services/Interfaces/IUserService.cs @@ -66,18 +66,8 @@ namespace OpenSim.Services.Interfaces UUID.TryParse(kvp["ScopeID"].ToString(), out ScopeID); if (kvp.ContainsKey("Created")) DateTime.TryParse(kvp["Created"].ToString(), out Created); - if (kvp.ContainsKey("ServiceURLs") && kvp["ServiceURLs"] != null) - { - if (kvp["ServiceURLs"] is Dictionary) - { - ServiceURLs = new Dictionary(); - foreach (KeyValuePair urls in (Dictionary)kvp["ServiceURLs"]) - { - ServiceURLs.Add(urls.Key, urls.Value); - } - } - } - + if (kvp.ContainsKey("ServiceURLs") && kvp["ServiceURLs"] != null && (kvp["ServiceURLs"] is Dictionary)) + ServiceURLs = (Dictionary)kvp["ServiceURLs"]; } public Dictionary ToKeyValuePairs()