mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
last round of warning squashing. calling it a day now.
This commit is contained in:
@@ -370,7 +370,7 @@ namespace OpenSim.Data.MSSQL
|
||||
int revision = Util.UnixTimeSinceEpoch();
|
||||
m_log.Info("[REGION DB]: Storing terrain revision r" + revision.ToString());
|
||||
|
||||
DataTable terrain = m_dataSet.Tables["terrain"];
|
||||
// DataTable terrain = m_dataSet.Tables["terrain"];
|
||||
lock (m_dataSet)
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand("insert into terrain(RegionUUID, Revision, Heightfield)" +
|
||||
@@ -400,7 +400,7 @@ namespace OpenSim.Data.MSSQL
|
||||
where RegionUUID=@RegionUUID order by Revision desc"
|
||||
, m_connection);
|
||||
|
||||
SqlParameter param = new SqlParameter();
|
||||
// SqlParameter param = new SqlParameter();
|
||||
cmd.Parameters.Add(new SqlParameter("@RegionUUID", regionID.UUID));
|
||||
|
||||
if (m_connection.State != ConnectionState.Open)
|
||||
|
||||
@@ -434,11 +434,11 @@ namespace OpenSim.Data.MSSQL
|
||||
/// <returns></returns>
|
||||
public bool AuthenticateSim(LLUUID uuid, ulong handle, string authhash, string challenge)
|
||||
{
|
||||
SHA512Managed HashProvider = new SHA512Managed();
|
||||
Encoding TextProvider = new UTF8Encoding();
|
||||
// SHA512Managed HashProvider = new SHA512Managed();
|
||||
// Encoding TextProvider = new UTF8Encoding();
|
||||
|
||||
byte[] stream = TextProvider.GetBytes(uuid.ToString() + ":" + handle.ToString() + ":" + challenge);
|
||||
byte[] hash = HashProvider.ComputeHash(stream);
|
||||
// byte[] stream = TextProvider.GetBytes(uuid.ToString() + ":" + handle.ToString() + ":" + challenge);
|
||||
// byte[] hash = HashProvider.ComputeHash(stream);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -544,7 +544,7 @@ namespace OpenSim.Data.MSSQL
|
||||
public string getVersion()
|
||||
{
|
||||
Module module = GetType().Module;
|
||||
string dllName = module.Assembly.ManifestModule.Name;
|
||||
// string dllName = module.Assembly.ManifestModule.Name;
|
||||
Version dllVersion = module.Assembly.GetName().Version;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user