Comment out unused variables / private fields to avoid compiler warnings.

This commit is contained in:
Jeff Ames
2009-06-04 03:58:04 +00:00
parent 2a855a6457
commit c6cef4bad5
8 changed files with 31 additions and 40 deletions

View File

@@ -36,7 +36,7 @@ namespace OpenSim.Server.Handlers.Authentication
{
public class AuthenticationServiceConnector : ServiceConnector
{
private IAuthenticationService m_AuthenticationService;
//private IAuthenticationService m_AuthenticationService;
public AuthenticationServiceConnector(IConfigSource config, IHttpServer server) :
base(config, server)
@@ -51,9 +51,8 @@ namespace OpenSim.Server.Handlers.Authentication
if (authenticationService == String.Empty)
throw new Exception("No AuthenticationService in config file");
Object[] args = new Object[] { config };
m_AuthenticationService =
ServerUtils.LoadPlugin<IAuthenticationService>(authenticationService, args);
//Object[] args = new Object[] { config };
//m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authenticationService, args);
//server.AddStreamHandler(new AuthenticationServerGetHandler(m_AuthenticationService));
}

View File

@@ -46,14 +46,14 @@ namespace OpenSim.Server.Handlers.Simulation
{
public class AgentGetHandler : BaseStreamHandler
{
private ISimulationService m_SimulationService;
private IAuthenticationService m_AuthenticationService;
// TODO: unused: private ISimulationService m_SimulationService;
// TODO: unused: private IAuthenticationService m_AuthenticationService;
public AgentGetHandler(ISimulationService service, IAuthenticationService authentication) :
base("GET", "/agent")
{
m_SimulationService = service;
m_AuthenticationService = authentication;
// TODO: unused: m_SimulationService = service;
// TODO: unused: m_AuthenticationService = authentication;
}
public override byte[] Handle(string path, Stream request,
@@ -70,14 +70,14 @@ namespace OpenSim.Server.Handlers.Simulation
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private ISimulationService m_SimulationService;
private IAuthenticationService m_AuthenticationService;
private bool m_AllowForeignGuests;
// TODO: unused: private bool m_AllowForeignGuests;
public AgentPostHandler(ISimulationService service, IAuthenticationService authentication, bool foreignGuests) :
base("POST", "/agent")
{
m_SimulationService = service;
m_AuthenticationService = authentication;
m_AllowForeignGuests = foreignGuests;
// TODO: unused: m_AllowForeignGuests = foreignGuests;
}
public override byte[] Handle(string path, Stream request,
@@ -160,20 +160,19 @@ namespace OpenSim.Server.Handlers.Simulation
httpResponse.StatusCode = (int)HttpStatusCode.OK;
return Encoding.UTF8.GetBytes(OSDParser.SerializeJsonString(resp));
}
}
public class AgentPutHandler : BaseStreamHandler
{
private ISimulationService m_SimulationService;
private IAuthenticationService m_AuthenticationService;
// TODO: unused: private ISimulationService m_SimulationService;
// TODO: unused: private IAuthenticationService m_AuthenticationService;
public AgentPutHandler(ISimulationService service, IAuthenticationService authentication) :
base("PUT", "/agent")
{
m_SimulationService = service;
m_AuthenticationService = authentication;
// TODO: unused: m_SimulationService = service;
// TODO: unused: m_AuthenticationService = authentication;
}
public override byte[] Handle(string path, Stream request,
@@ -187,14 +186,14 @@ namespace OpenSim.Server.Handlers.Simulation
public class AgentDeleteHandler : BaseStreamHandler
{
private ISimulationService m_SimulationService;
private IAuthenticationService m_AuthenticationService;
// TODO: unused: private ISimulationService m_SimulationService;
// TODO: unused: private IAuthenticationService m_AuthenticationService;
public AgentDeleteHandler(ISimulationService service, IAuthenticationService authentication) :
base("DELETE", "/agent")
{
m_SimulationService = service;
m_AuthenticationService = authentication;
// TODO: unused: m_SimulationService = service;
// TODO: unused: m_AuthenticationService = authentication;
}
public override byte[] Handle(string path, Stream request,
@@ -205,5 +204,4 @@ namespace OpenSim.Server.Handlers.Simulation
return new byte[] { };
}
}
}

View File

@@ -46,7 +46,7 @@ namespace OpenSim.Server.Handlers.Tests.Asset
{
TestHelper.InMethod();
AssetServerGetHandler handler = new AssetServerGetHandler( null );
AssetServerGetHandler handler = new AssetServerGetHandler(null);
}
[Test]
@@ -54,7 +54,7 @@ namespace OpenSim.Server.Handlers.Tests.Asset
{
TestHelper.InMethod();
AssetServerGetHandler handler = new AssetServerGetHandler(null);
AssetServerGetHandler handler = new AssetServerGetHandler(null);
BaseRequestHandlerTestHelper.BaseTestGetParams(handler, ASSETS_PATH);
}
@@ -63,18 +63,18 @@ namespace OpenSim.Server.Handlers.Tests.Asset
{
TestHelper.InMethod();
AssetServerGetHandler handler = new AssetServerGetHandler(null);
AssetServerGetHandler handler = new AssetServerGetHandler(null);
BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, ASSETS_PATH);
}
// TODO: unused
// private static AssetBase CreateTestEnvironment(out AssetServerGetHandler handler, out OSHttpResponse response)
// private static AssetBase CreateTestEnvironment(out AssetServerGetHandler handler, out OSHttpResponse response)
// {
// AssetBase asset = GetAssetStreamHandlerTestHelpers.CreateCommonTestResources(out response);
// IAssetService assetDataPlugin = new TestAssetService();
// handler = new AssetServerGetHandler(assetDataPlugin);
// handler = new AssetServerGetHandler(assetDataPlugin);
// assetDataPlugin.Store(asset);
// return asset;
// }
}
}
}