mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
Comment out an unused 'str' and add a WriteLine to use
an "Exception e" with e.ToString() to eliminate 2 warnings.
This commit is contained in:
@@ -89,6 +89,8 @@ namespace OpenSim.Region.Environment.Modules
|
||||
size = Convert.ToInt32(extraParams);
|
||||
} catch (Exception e) {
|
||||
|
||||
//Ckrinke: Add a WriteLine to remove the warning about 'e' defined but not used
|
||||
Console.WriteLine("Problem with Draw. Please verify parameters." + e.ToString());
|
||||
}
|
||||
|
||||
if ((size < 128) || (size > 1024))
|
||||
@@ -306,7 +308,8 @@ namespace OpenSim.Region.Environment.Modules
|
||||
private Bitmap ImageHttpRequest(string url)
|
||||
{
|
||||
WebRequest request = HttpWebRequest.Create(url);
|
||||
Stream str = null;
|
||||
//Ckrinke: Comment out for now as 'str' is unused. Bring it back into play later when it is used.
|
||||
//Ckrinke Stream str = null;
|
||||
HttpWebResponse response = (HttpWebResponse)(request).GetResponse();
|
||||
if (response.StatusCode == HttpStatusCode.OK)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user