Eliminate subsequently unused scene finding in UndeliveredMessage() method of xmlrpc and core offline IM modules

bullet-2.82
Justin Clark-Casey (justincc) 2014-05-12 22:23:24 +01:00
parent 19d8f05584
commit 8457044b2f
2 changed files with 0 additions and 8 deletions

View File

@ -226,10 +226,6 @@ namespace OpenSim.OfflineIM
return;
}
Scene scene = FindScene(new UUID(im.fromAgentID));
if (scene == null)
scene = m_SceneList[0];
string reason = string.Empty;
bool success = m_OfflineIMService.StoreMessage(im, out reason);

View File

@ -226,10 +226,6 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
return;
}
Scene scene = FindScene(new UUID(im.fromAgentID));
if (scene == null)
scene = m_SceneList[0];
bool success = SynchronousRestObjectRequester.MakeRequest<GridInstantMessage, bool>(
"POST", m_RestURL+"/SaveMessage/", im);