remove some mono compiler warnings

0.7.1-dev
Justin Clark-Casey (justincc) 2011-03-31 22:20:12 +01:00
parent 8022400bd4
commit 7bba31e8d9
6 changed files with 8 additions and 10 deletions

View File

@ -43,7 +43,7 @@ namespace OpenSim.Data.MSSQL
public class MSSQLAvatarData : MSSQLGenericTableHandler<AvatarBaseData>, public class MSSQLAvatarData : MSSQLGenericTableHandler<AvatarBaseData>,
IAvatarData IAvatarData
{ {
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public MSSQLAvatarData(string connectionString, string realm) : public MSSQLAvatarData(string connectionString, string realm) :
base(connectionString, realm, "Avatar") base(connectionString, realm, "Avatar")

View File

@ -40,8 +40,8 @@ namespace OpenSim.Data.MSSQL
{ {
public class MSSQLGenericTableHandler<T> where T : class, new() public class MSSQLGenericTableHandler<T> where T : class, new()
{ {
private static readonly ILog m_log = // private static readonly ILog m_log =
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
protected string m_ConnectionString; protected string m_ConnectionString;
protected MSSQLManager m_database; //used for parameter type translation protected MSSQLManager m_database; //used for parameter type translation

View File

@ -43,7 +43,7 @@ namespace OpenSim.Data.MSSQL
public class MSSQLGridUserData : MSSQLGenericTableHandler<GridUserData>, public class MSSQLGridUserData : MSSQLGenericTableHandler<GridUserData>,
IGridUserData IGridUserData
{ {
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public MSSQLGridUserData(string connectionString, string realm) : public MSSQLGridUserData(string connectionString, string realm) :
base(connectionString, realm, "GridUserStore") base(connectionString, realm, "GridUserStore")

View File

@ -41,7 +41,7 @@ namespace OpenSim.Data.MSSQL
/// </summary> /// </summary>
public class MSSQLManager public class MSSQLManager
{ {
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
/// <summary> /// <summary>
/// Connection string for ADO.net /// Connection string for ADO.net
@ -180,8 +180,6 @@ namespace OpenSim.Data.MSSQL
return parameter; return parameter;
} }
private static readonly Dictionary<string, string> emptyDictionary = new Dictionary<string, string>();
/// <summary> /// <summary>
/// Checks if we need to do some migrations to the database /// Checks if we need to do some migrations to the database
/// </summary> /// </summary>

View File

@ -43,7 +43,7 @@ namespace OpenSim.Data.MSSQL
public class MSSQLPresenceData : MSSQLGenericTableHandler<PresenceData>, public class MSSQLPresenceData : MSSQLGenericTableHandler<PresenceData>,
IPresenceData IPresenceData
{ {
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public MSSQLPresenceData(string connectionString, string realm) : public MSSQLPresenceData(string connectionString, string realm) :
base(connectionString, realm, "Presence") base(connectionString, realm, "Presence")

View File

@ -40,8 +40,8 @@ namespace OpenSim.Data.MSSQL
{ {
public class MSSQLXInventoryData : IXInventoryData public class MSSQLXInventoryData : IXInventoryData
{ {
private static readonly ILog m_log = LogManager.GetLogger( // private static readonly ILog m_log = LogManager.GetLogger(
MethodBase.GetCurrentMethod().DeclaringType); // MethodBase.GetCurrentMethod().DeclaringType);
private MSSQLGenericTableHandler<XInventoryFolder> m_Folders; private MSSQLGenericTableHandler<XInventoryFolder> m_Folders;
private MSSQLItemHandler m_Items; private MSSQLItemHandler m_Items;