From 7948033565a106395eb10ae3e169c9c4fa6cbdba Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 18 Dec 2007 08:41:23 +0000 Subject: * Removed redundant code in RestService.cs * Removed unchecked TryParse, replaced with Parse as we were not checking for success and could lead to weirdness if an exception is ignored. * Removed unused variable m_newAvatar * Removed several unused try{}catch(Exception e){}'s. * Added null assignment in simpleapp to prevent warning. --- OpenSim/Grid/AssetServer/RestService.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'OpenSim/Grid') diff --git a/OpenSim/Grid/AssetServer/RestService.cs b/OpenSim/Grid/AssetServer/RestService.cs index 29def9e..1f44686 100644 --- a/OpenSim/Grid/AssetServer/RestService.cs +++ b/OpenSim/Grid/AssetServer/RestService.cs @@ -54,14 +54,7 @@ namespace OpenSim.Grid.AssetServer if (p.Length > 0) { - LLUUID assetID; - bool isTexture = false; - LLUUID.TryParse(p[0], out assetID); - if (p.Length > 1) - { - if (string.Compare(p[1], "texture", true) == 0) - isTexture = true; - } + LLUUID assetID = LLUUID.Parse(p[0]); MainLog.Instance.Verbose("REST", "GET:/asset fetch param={0} UUID={1}", param, assetID); AssetBase asset = m_assetProvider.FetchAsset(assetID); -- cgit v1.1