From c0cd681608c3c8f5ffc27c855720a131c3989da8 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 21 Nov 2008 21:24:39 +0000 Subject: [PATCH] * Comment out unused access time method in MSSQL * This should probably be being called in FetchAsset() instead as for all the other databases, but I lack the means to test MSSQL --- OpenSim/Data/MSSQL/MSSQLAssetData.cs | 36 +++++++++---------- .../Environment/Scenes/SceneObjectPart.cs | 1 - 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/OpenSim/Data/MSSQL/MSSQLAssetData.cs b/OpenSim/Data/MSSQL/MSSQLAssetData.cs index 68f353dfe6..b8753a101a 100644 --- a/OpenSim/Data/MSSQL/MSSQLAssetData.cs +++ b/OpenSim/Data/MSSQL/MSSQLAssetData.cs @@ -212,24 +212,24 @@ namespace OpenSim.Data.MSSQL } } - - private void UpdateAccessTime(AssetBase asset) - { - using (AutoClosingSqlCommand cmd = database.Query("UPDATE assets SET access_time = @access_time WHERE id=@id")) - { - int now = (int)((System.DateTime.Now.Ticks - TicksToEpoch) / 10000000); - cmd.Parameters.AddWithValue("@id", asset.FullID.ToString()); - cmd.Parameters.AddWithValue("@access_time", now); - try - { - cmd.ExecuteNonQuery(); - } - catch (Exception e) - { - m_log.Error(e.ToString()); - } - } - } +// Commented out since currently unused - this probably should be called in FetchAsset() +// private void UpdateAccessTime(AssetBase asset) +// { +// using (AutoClosingSqlCommand cmd = database.Query("UPDATE assets SET access_time = @access_time WHERE id=@id")) +// { +// int now = (int)((System.DateTime.Now.Ticks - TicksToEpoch) / 10000000); +// cmd.Parameters.AddWithValue("@id", asset.FullID.ToString()); +// cmd.Parameters.AddWithValue("@access_time", now); +// try +// { +// cmd.ExecuteNonQuery(); +// } +// catch (Exception e) +// { +// m_log.Error(e.ToString()); +// } +// } +// } /// /// Check if asset exist in database diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 250c803dd5..8a58e71047 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -3378,7 +3378,6 @@ if (m_shape != null) { #endregion Public Methods - private byte GetAttachPointEncoded() { return (byte)((AttachmentPoint % 16) * 16 + (AttachmentPoint / 16));