diff options
author | Justin Clarke Casey | 2008-11-27 19:43:26 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-11-27 19:43:26 +0000 |
commit | 45c50998c23657764918649b8966f429674b0c92 (patch) | |
tree | f925d3976b4ae277db3e732c429014e5c30e5b5e /OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | |
parent | * Add a file I forgot in the last commit. (diff) | |
download | opensim-SC_OLD-45c50998c23657764918649b8966f429674b0c92.zip opensim-SC_OLD-45c50998c23657764918649b8966f429674b0c92.tar.gz opensim-SC_OLD-45c50998c23657764918649b8966f429674b0c92.tar.bz2 opensim-SC_OLD-45c50998c23657764918649b8966f429674b0c92.tar.xz |
* Remove unused and largely unimplemented UpdateUserCurrentRegion()
* please say if this causes you a problem
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1UserServices.cs')
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs index af8d53e..0e74f34 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | |||
@@ -285,58 +285,6 @@ namespace OpenSim.Region.Communications.OGS1 | |||
285 | return GetUserProfile(firstName + " " + lastName); | 285 | return GetUserProfile(firstName + " " + lastName); |
286 | } | 286 | } |
287 | 287 | ||
288 | public void UpdateUserCurrentRegion(UUID avatarid, UUID regionuuid, ulong regionhandle) | ||
289 | { | ||
290 | Hashtable param = new Hashtable(); | ||
291 | param.Add("avatar_id", avatarid.ToString()); | ||
292 | param.Add("region_uuid", regionuuid.ToString()); | ||
293 | param.Add("region_handle", regionhandle.ToString()); | ||
294 | IList parameters = new ArrayList(); | ||
295 | parameters.Add(param); | ||
296 | XmlRpcRequest req = new XmlRpcRequest("update_user_current_region", parameters); | ||
297 | |||
298 | XmlRpcResponse resp; | ||
299 | |||
300 | try | ||
301 | { | ||
302 | resp = req.Send(m_parent.NetworkServersInfo.UserURL, 3000); | ||
303 | } | ||
304 | catch(WebException) | ||
305 | { | ||
306 | m_log.Warn("[OSG1 USER SERVICES]: Grid not responding. Retrying."); | ||
307 | |||
308 | try | ||
309 | { | ||
310 | resp = req.Send(m_parent.NetworkServersInfo.UserURL, 3000); | ||
311 | } | ||
312 | catch (WebException) | ||
313 | { | ||
314 | m_log.Warn("[OSG1 USER SERVICES]: Grid not responding. Failed."); | ||
315 | return; | ||
316 | } | ||
317 | } | ||
318 | |||
319 | if (resp == null) | ||
320 | { | ||
321 | m_log.Warn("[OSG1 USER SERVICES]: Got no response, Grid server may not be updated."); | ||
322 | return; | ||
323 | } | ||
324 | |||
325 | Hashtable respData = (Hashtable)resp.Value; | ||
326 | |||
327 | if (respData == null || !respData.ContainsKey("returnString")) | ||
328 | { | ||
329 | m_log.Error("[OSG1 USER SERVICES]: Error updating user record, Grid server may not be updated."); | ||
330 | } | ||
331 | else | ||
332 | { | ||
333 | if ((string) respData["returnString"] != "TRUE") | ||
334 | { | ||
335 | m_log.Error("[OSG1 USER SERVICES]: Error updating user record"); | ||
336 | } | ||
337 | } | ||
338 | } | ||
339 | |||
340 | public List<AvatarPickerAvatar> GenerateAgentPickerRequestResponse(UUID queryID, string query) | 288 | public List<AvatarPickerAvatar> GenerateAgentPickerRequestResponse(UUID queryID, string query) |
341 | { | 289 | { |
342 | List<AvatarPickerAvatar> pickerlist = new List<AvatarPickerAvatar>(); | 290 | List<AvatarPickerAvatar> pickerlist = new List<AvatarPickerAvatar>(); |