From 25a49ac4de056f43d6c5803fcd34804fcea96ae2 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 30 Apr 2008 23:11:07 +0000 Subject: * Spring cleaned a bunch of '//TODO: unused' marked functions. --- .../Communications/RestClient/RestClient.cs | 54 ---------------------- 1 file changed, 54 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Communications/RestClient/RestClient.cs b/OpenSim/Framework/Communications/RestClient/RestClient.cs index 5463134..6877690 100644 --- a/OpenSim/Framework/Communications/RestClient/RestClient.cs +++ b/OpenSim/Framework/Communications/RestClient/RestClient.cs @@ -196,17 +196,6 @@ namespace OpenSim.Framework.Communications return s.Substring(s.Length - 1, 1) == "/"; } -// TODO: unused -// /// -// /// return a slash or blank. A slash will be returned if the string does not contain one -// /// -// /// stromg to be examined -// /// slash '/' if not already present -// private string slash(string s) -// { -// return isSlashed(s) ? String.Empty : "/"; -// } - /// /// Build a Uri based on the initial Url, path elements and parameters /// @@ -280,49 +269,6 @@ namespace OpenSim.Framework.Communications } } -// TODO: unused -// /// -// /// Async method, invoked when the initial response if received from the server -// /// -// /// -// 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 /// -- cgit v1.1