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()