Merge pull request #1155 from steffen-kiess/json-string
[mono.git] / mcs / class / System.Web / System.Web.Security / SqliteRoleProvider.cs
index e051a49378aac52e01f3530997f5c38c62f4dca2..04804e9808493d52241425fac91cef4d353aa03b 100644 (file)
@@ -28,7 +28,6 @@
 // Adapted to Sqlite by Marek Habersack <mhabersack@novell.com>
 //
 
-#if NET_2_0
 using System;
 using System.Data;
 using System.Data.Common;
@@ -47,9 +46,9 @@ namespace System.Web.Security
 {
        internal class SqliteRoleProvider : RoleProvider
        {
-               private const string m_RolesTableName = "Roles";
-               private const string m_UserInRolesTableName = "UsersInRoles";
-               private string m_ConnectionString = string.Empty;
+               const string m_RolesTableName = "Roles";
+               const string m_UserInRolesTableName = "UsersInRoles";
+               string m_ConnectionString = string.Empty;
 
                DbParameter AddParameter (DbCommand command, string parameterName)
                {
@@ -70,17 +69,6 @@ namespace System.Web.Security
                         command.Parameters.Add (dbp);
                         return dbp;
                 }
-
-                DbParameter AddParameter (DbCommand command, string parameterName, ParameterDirection direction, DbType type, object parameterValue)
-                {
-                        DbParameter dbp = command.CreateParameter ();
-                        dbp.ParameterName = parameterName;
-                        dbp.Value = parameterValue;
-                        dbp.Direction = direction;
-                        dbp.DbType = type;
-                        command.Parameters.Add (dbp);
-                        return dbp;
-                }
                
                /// <summary>
                /// System.Configuration.Provider.ProviderBase.Initialize Method
@@ -129,7 +117,7 @@ namespace System.Web.Security
                /// System.Web.Security.RoleProvider properties.
                /// </summary>
                #region System.Web.Security.RoleProvider properties
-               private string m_ApplicationName = string.Empty;
+               string m_ApplicationName = string.Empty;
 
                public override string ApplicationName
                {
@@ -700,7 +688,7 @@ namespace System.Web.Security
                /// <param name="configValue"></param>
                /// <param name="defaultValue"></param>
                /// <returns></returns>
-               private string GetConfigValue(string configValue, string defaultValue)
+               string GetConfigValue(string configValue, string defaultValue)
                {
                        if (string.IsNullOrEmpty(configValue))
                                return defaultValue;
@@ -710,4 +698,3 @@ namespace System.Web.Security
                #endregion      
        }
 }
-#endif