minor: remove some mono compiler warnings

trunk
Justin Clarke Casey 2009-07-15 20:49:58 +00:00
parent d89cf47d50
commit 5815162d7e
11 changed files with 18 additions and 21 deletions

View File

@ -427,7 +427,7 @@ namespace OpenSim.Framework
if (name == String.Empty)
throw new Exception("Cannot interactively create region with no name");
IConfig newRegion = source.AddConfig(name);
source.AddConfig(name);
creatingNew = true;
}
@ -437,7 +437,7 @@ namespace OpenSim.Framework
if (source.Configs[name] == null)
{
IConfig newRegion = source.AddConfig(name);
source.AddConfig(name);
creatingNew = true;
}

View File

@ -93,10 +93,9 @@ namespace OpenSim.Framework.Servers.Tests
[Test]
public void TestHandleFetchMissingAsset()
{
IAssetCache assetCache = new TestAssetCache();
CachedGetAssetStreamHandler handler;
OSHttpResponse response;
AssetBase asset = CreateTestEnvironment(out handler, out response);
CreateTestEnvironment(out handler, out response);
GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler, response);
}

View File

@ -96,7 +96,7 @@ namespace OpenSim.Framework.Servers.Tests
{
GetAssetStreamHandler handler;
OSHttpResponse response;
AssetBase asset = CreateTestEnvironment(out handler, out response);
CreateTestEnvironment(out handler, out response);
GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler, response);
}

View File

@ -48,8 +48,8 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Neighbour
private bool m_Enabled = false;
private LocalNeighbourServicesConnector m_LocalService;
private string serviceDll;
private List<Scene> m_Scenes = new List<Scene>();
//private string serviceDll;
//private List<Scene> m_Scenes = new List<Scene>();
public Type ReplacableInterface
{

View File

@ -145,8 +145,6 @@ namespace OpenSim.Region.Framework.Scenes
private Vector3 m_lastVelocity = Vector3.Zero;
private int m_maxPrimsPerFrame = 200;
// Default AV Height
private float m_avHeight = 127.0f;

View File

@ -74,7 +74,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
[Test]
public void TestConstructor()
{
SceneBase scene = new SceneBaseImpl();
new SceneBaseImpl();
}
}
}

View File

@ -132,7 +132,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
RegionInfo regionInfo = new RegionInfo(0,0,null,null);
FakeStorageManager storageManager = new FakeStorageManager();
Scene scene = new Scene(regionInfo, null, null, null, storageManager, null, false, false, false, null, null);
new Scene(regionInfo, null, null, null, storageManager, null, false, false, false, null, null);
}
}
}

View File

@ -42,7 +42,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
private readonly Scene m_rootScene;
private readonly UUID m_ID;
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
//private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public SPAvatar(Scene scene, UUID ID)
{

View File

@ -35,17 +35,17 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
public class SPAvatarAttachment : IAvatarAttachment
{
private readonly Scene m_rootScene;
private readonly IAvatar m_parent;
//private readonly IAvatar m_parent;
private readonly int m_location;
private readonly UUID m_itemId;
//private readonly UUID m_itemId;
private readonly UUID m_assetId;
public SPAvatarAttachment(Scene rootScene, IAvatar self, int location, UUID itemId, UUID assetId)
{
m_rootScene = rootScene;
m_parent = self;
//m_parent = self;
m_location = location;
m_itemId = itemId;
//m_itemId = itemId;
m_assetId = assetId;
}

View File

@ -46,7 +46,7 @@ namespace OpenSim.Server.Handlers.Tests.Asset
{
TestHelper.InMethod();
AssetServerGetHandler handler = new AssetServerGetHandler(null);
new AssetServerGetHandler(null);
}
[Test]

View File

@ -43,13 +43,13 @@ namespace OpenSim.Services.Connectors
/// </summary>
public class QuickAndDirtyInventoryServiceConnector : IInventoryService
{
private static readonly ILog m_log =
LogManager.GetLogger(
MethodBase.GetCurrentMethod().DeclaringType);
// private static readonly ILog m_log =
// LogManager.GetLogger(
// MethodBase.GetCurrentMethod().DeclaringType);
private string m_ServerURI = String.Empty;
private Dictionary<UUID, InventoryReceiptCallback> m_RequestingInventory = new Dictionary<UUID, InventoryReceiptCallback>();
//private Dictionary<UUID, InventoryReceiptCallback> m_RequestingInventory = new Dictionary<UUID, InventoryReceiptCallback>();
public QuickAndDirtyInventoryServiceConnector()
{