* Spring cleaned a bunch of '//TODO: unused' marked functions.

This commit is contained in:
Adam Frisby
2008-04-30 23:11:07 +00:00
parent b67cf72bc3
commit 25a49ac4de
12 changed files with 0 additions and 414 deletions

View File

@@ -196,17 +196,6 @@ namespace OpenSim.Framework.Communications
return s.Substring(s.Length - 1, 1) == "/";
}
// TODO: unused
// /// <summary>
// /// return a slash or blank. A slash will be returned if the string does not contain one
// /// </summary>
// /// <param name="s">stromg to be examined</param>
// /// <returns>slash '/' if not already present</returns>
// private string slash(string s)
// {
// return isSlashed(s) ? String.Empty : "/";
// }
/// <summary>
/// Build a Uri based on the initial Url, path elements and parameters
/// </summary>
@@ -280,49 +269,6 @@ namespace OpenSim.Framework.Communications
}
}
// TODO: unused
// /// <summary>
// /// Async method, invoked when the initial response if received from the server
// /// </summary>
// /// <param name="ar"></param>
// private void ResponseIsReadyDelegate(IAsyncResult ar)
// {
// try
// {
// // grab response
// WebRequest wr = (WebRequest) ar.AsyncState;
// _response = (HttpWebResponse) wr.EndGetResponse(ar);
// // get response stream, and setup async reading
// Stream s = _response.GetResponseStream();
// IAsyncResult asynchronousResult =
// s.BeginRead(_readbuf, 0, BufferSize, new AsyncCallback(StreamIsReadyDelegate), s);
// // TODO! Implement timeout, without killing the server
// // wait until completed, or we timed out
// // ThreadPool.RegisterWaitForSingleObject(asynchronousResult.AsyncWaitHandle, new WaitOrTimerCallback(TimeoutCallback), _request, DefaultTimeout, true);
// }
// catch (Exception e)
// {
// _allDone.Set();
// _asyncException = e;
// }
// }
// TODO: unused
// // Abort the request if the timer fires.
// private static void TimeoutCallback(object state, bool timedOut)
// {
// if (timedOut)
// {
// HttpWebRequest request = state as HttpWebRequest;
// if (request != null)
// {
// request.Abort();
// }
// }
// }
#endregion Async communications with server
/// <summary>