aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers
diff options
context:
space:
mode:
authorJeff Ames2009-06-04 03:58:04 +0000
committerJeff Ames2009-06-04 03:58:04 +0000
commitc6cef4bad5fe939b822687f521907c11c05a2bb3 (patch)
treeea76bc0035027a23e7ec9f05f6c77e01f106b880 /OpenSim/Server/Handlers
parentComment out unused private functions to avoid compiler warnings. (diff)
downloadopensim-SC_OLD-c6cef4bad5fe939b822687f521907c11c05a2bb3.zip
opensim-SC_OLD-c6cef4bad5fe939b822687f521907c11c05a2bb3.tar.gz
opensim-SC_OLD-c6cef4bad5fe939b822687f521907c11c05a2bb3.tar.bz2
opensim-SC_OLD-c6cef4bad5fe939b822687f521907c11c05a2bb3.tar.xz
Comment out unused variables / private fields to avoid compiler warnings.
Diffstat (limited to 'OpenSim/Server/Handlers')
-rw-r--r--OpenSim/Server/Handlers/Authentication/AuthenticationServerConnector.cs7
-rw-r--r--OpenSim/Server/Handlers/Simulation/AgentHandlers.cs30
-rw-r--r--OpenSim/Server/Handlers/Tests/Asset/AssetServerGetHandlerTests.cs12
3 files changed, 23 insertions, 26 deletions
diff --git a/OpenSim/Server/Handlers/Authentication/AuthenticationServerConnector.cs b/OpenSim/Server/Handlers/Authentication/AuthenticationServerConnector.cs
index 07dea4a..c3c2f69 100644
--- a/OpenSim/Server/Handlers/Authentication/AuthenticationServerConnector.cs
+++ b/OpenSim/Server/Handlers/Authentication/AuthenticationServerConnector.cs
@@ -36,7 +36,7 @@ namespace OpenSim.Server.Handlers.Authentication
36{ 36{
37 public class AuthenticationServiceConnector : ServiceConnector 37 public class AuthenticationServiceConnector : ServiceConnector
38 { 38 {
39 private IAuthenticationService m_AuthenticationService; 39 //private IAuthenticationService m_AuthenticationService;
40 40
41 public AuthenticationServiceConnector(IConfigSource config, IHttpServer server) : 41 public AuthenticationServiceConnector(IConfigSource config, IHttpServer server) :
42 base(config, server) 42 base(config, server)
@@ -51,9 +51,8 @@ namespace OpenSim.Server.Handlers.Authentication
51 if (authenticationService == String.Empty) 51 if (authenticationService == String.Empty)
52 throw new Exception("No AuthenticationService in config file"); 52 throw new Exception("No AuthenticationService in config file");
53 53
54 Object[] args = new Object[] { config }; 54 //Object[] args = new Object[] { config };
55 m_AuthenticationService = 55 //m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authenticationService, args);
56 ServerUtils.LoadPlugin<IAuthenticationService>(authenticationService, args);
57 56
58 //server.AddStreamHandler(new AuthenticationServerGetHandler(m_AuthenticationService)); 57 //server.AddStreamHandler(new AuthenticationServerGetHandler(m_AuthenticationService));
59 } 58 }
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
index dd32ec9..c14ad99 100644
--- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
+++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
@@ -46,14 +46,14 @@ namespace OpenSim.Server.Handlers.Simulation
46{ 46{
47 public class AgentGetHandler : BaseStreamHandler 47 public class AgentGetHandler : BaseStreamHandler
48 { 48 {
49 private ISimulationService m_SimulationService; 49 // TODO: unused: private ISimulationService m_SimulationService;
50 private IAuthenticationService m_AuthenticationService; 50 // TODO: unused: private IAuthenticationService m_AuthenticationService;
51 51
52 public AgentGetHandler(ISimulationService service, IAuthenticationService authentication) : 52 public AgentGetHandler(ISimulationService service, IAuthenticationService authentication) :
53 base("GET", "/agent") 53 base("GET", "/agent")
54 { 54 {
55 m_SimulationService = service; 55 // TODO: unused: m_SimulationService = service;
56 m_AuthenticationService = authentication; 56 // TODO: unused: m_AuthenticationService = authentication;
57 } 57 }
58 58
59 public override byte[] Handle(string path, Stream request, 59 public override byte[] Handle(string path, Stream request,
@@ -70,14 +70,14 @@ namespace OpenSim.Server.Handlers.Simulation
70 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 70 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
71 private ISimulationService m_SimulationService; 71 private ISimulationService m_SimulationService;
72 private IAuthenticationService m_AuthenticationService; 72 private IAuthenticationService m_AuthenticationService;
73 private bool m_AllowForeignGuests; 73 // TODO: unused: private bool m_AllowForeignGuests;
74 74
75 public AgentPostHandler(ISimulationService service, IAuthenticationService authentication, bool foreignGuests) : 75 public AgentPostHandler(ISimulationService service, IAuthenticationService authentication, bool foreignGuests) :
76 base("POST", "/agent") 76 base("POST", "/agent")
77 { 77 {
78 m_SimulationService = service; 78 m_SimulationService = service;
79 m_AuthenticationService = authentication; 79 m_AuthenticationService = authentication;
80 m_AllowForeignGuests = foreignGuests; 80 // TODO: unused: m_AllowForeignGuests = foreignGuests;
81 } 81 }
82 82
83 public override byte[] Handle(string path, Stream request, 83 public override byte[] Handle(string path, Stream request,
@@ -160,20 +160,19 @@ namespace OpenSim.Server.Handlers.Simulation
160 httpResponse.StatusCode = (int)HttpStatusCode.OK; 160 httpResponse.StatusCode = (int)HttpStatusCode.OK;
161 161
162 return Encoding.UTF8.GetBytes(OSDParser.SerializeJsonString(resp)); 162 return Encoding.UTF8.GetBytes(OSDParser.SerializeJsonString(resp));
163
164 } 163 }
165 } 164 }
166 165
167 public class AgentPutHandler : BaseStreamHandler 166 public class AgentPutHandler : BaseStreamHandler
168 { 167 {
169 private ISimulationService m_SimulationService; 168 // TODO: unused: private ISimulationService m_SimulationService;
170 private IAuthenticationService m_AuthenticationService; 169 // TODO: unused: private IAuthenticationService m_AuthenticationService;
171 170
172 public AgentPutHandler(ISimulationService service, IAuthenticationService authentication) : 171 public AgentPutHandler(ISimulationService service, IAuthenticationService authentication) :
173 base("PUT", "/agent") 172 base("PUT", "/agent")
174 { 173 {
175 m_SimulationService = service; 174 // TODO: unused: m_SimulationService = service;
176 m_AuthenticationService = authentication; 175 // TODO: unused: m_AuthenticationService = authentication;
177 } 176 }
178 177
179 public override byte[] Handle(string path, Stream request, 178 public override byte[] Handle(string path, Stream request,
@@ -187,14 +186,14 @@ namespace OpenSim.Server.Handlers.Simulation
187 186
188 public class AgentDeleteHandler : BaseStreamHandler 187 public class AgentDeleteHandler : BaseStreamHandler
189 { 188 {
190 private ISimulationService m_SimulationService; 189 // TODO: unused: private ISimulationService m_SimulationService;
191 private IAuthenticationService m_AuthenticationService; 190 // TODO: unused: private IAuthenticationService m_AuthenticationService;
192 191
193 public AgentDeleteHandler(ISimulationService service, IAuthenticationService authentication) : 192 public AgentDeleteHandler(ISimulationService service, IAuthenticationService authentication) :
194 base("DELETE", "/agent") 193 base("DELETE", "/agent")
195 { 194 {
196 m_SimulationService = service; 195 // TODO: unused: m_SimulationService = service;
197 m_AuthenticationService = authentication; 196 // TODO: unused: m_AuthenticationService = authentication;
198 } 197 }
199 198
200 public override byte[] Handle(string path, Stream request, 199 public override byte[] Handle(string path, Stream request,
@@ -205,5 +204,4 @@ namespace OpenSim.Server.Handlers.Simulation
205 return new byte[] { }; 204 return new byte[] { };
206 } 205 }
207 } 206 }
208
209} 207}
diff --git a/OpenSim/Server/Handlers/Tests/Asset/AssetServerGetHandlerTests.cs b/OpenSim/Server/Handlers/Tests/Asset/AssetServerGetHandlerTests.cs
index aeca7b9..2615358 100644
--- a/OpenSim/Server/Handlers/Tests/Asset/AssetServerGetHandlerTests.cs
+++ b/OpenSim/Server/Handlers/Tests/Asset/AssetServerGetHandlerTests.cs
@@ -46,7 +46,7 @@ namespace OpenSim.Server.Handlers.Tests.Asset
46 { 46 {
47 TestHelper.InMethod(); 47 TestHelper.InMethod();
48 48
49 AssetServerGetHandler handler = new AssetServerGetHandler( null ); 49 AssetServerGetHandler handler = new AssetServerGetHandler(null);
50 } 50 }
51 51
52 [Test] 52 [Test]
@@ -54,7 +54,7 @@ namespace OpenSim.Server.Handlers.Tests.Asset
54 { 54 {
55 TestHelper.InMethod(); 55 TestHelper.InMethod();
56 56
57 AssetServerGetHandler handler = new AssetServerGetHandler(null); 57 AssetServerGetHandler handler = new AssetServerGetHandler(null);
58 BaseRequestHandlerTestHelper.BaseTestGetParams(handler, ASSETS_PATH); 58 BaseRequestHandlerTestHelper.BaseTestGetParams(handler, ASSETS_PATH);
59 } 59 }
60 60
@@ -63,18 +63,18 @@ namespace OpenSim.Server.Handlers.Tests.Asset
63 { 63 {
64 TestHelper.InMethod(); 64 TestHelper.InMethod();
65 65
66 AssetServerGetHandler handler = new AssetServerGetHandler(null); 66 AssetServerGetHandler handler = new AssetServerGetHandler(null);
67 BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, ASSETS_PATH); 67 BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, ASSETS_PATH);
68 } 68 }
69 69
70 // TODO: unused 70 // TODO: unused
71 // private static AssetBase CreateTestEnvironment(out AssetServerGetHandler handler, out OSHttpResponse response) 71 // private static AssetBase CreateTestEnvironment(out AssetServerGetHandler handler, out OSHttpResponse response)
72 // { 72 // {
73 // AssetBase asset = GetAssetStreamHandlerTestHelpers.CreateCommonTestResources(out response); 73 // AssetBase asset = GetAssetStreamHandlerTestHelpers.CreateCommonTestResources(out response);
74 // IAssetService assetDataPlugin = new TestAssetService(); 74 // IAssetService assetDataPlugin = new TestAssetService();
75 // handler = new AssetServerGetHandler(assetDataPlugin); 75 // handler = new AssetServerGetHandler(assetDataPlugin);
76 // assetDataPlugin.Store(asset); 76 // assetDataPlugin.Store(asset);
77 // return asset; 77 // return asset;
78 // } 78 // }
79 } 79 }
80} \ No newline at end of file 80}