From 8d29d490a10c840a5b4f7b58c66e04295fe34edd Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Thu, 18 Aug 2011 01:16:58 +0100 Subject: minor: remove some mono compiler warnings --- OpenSim/Data/MSSQL/MSSQLMigration.cs | 2 +- OpenSim/Data/MSSQL/MSSQLXInventoryData.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Data/MSSQL') diff --git a/OpenSim/Data/MSSQL/MSSQLMigration.cs b/OpenSim/Data/MSSQL/MSSQLMigration.cs index 1aa96c7..c2fecef 100644 --- a/OpenSim/Data/MSSQL/MSSQLMigration.cs +++ b/OpenSim/Data/MSSQL/MSSQLMigration.cs @@ -88,7 +88,7 @@ namespace OpenSim.Data.MSSQL cmd.ExecuteNonQuery(); } } - catch (Exception ex) + catch (Exception) { throw new Exception(sql); diff --git a/OpenSim/Data/MSSQL/MSSQLXInventoryData.cs b/OpenSim/Data/MSSQL/MSSQLXInventoryData.cs index 10b0f29..b19a0da 100644 --- a/OpenSim/Data/MSSQL/MSSQLXInventoryData.cs +++ b/OpenSim/Data/MSSQL/MSSQLXInventoryData.cs @@ -191,7 +191,7 @@ namespace OpenSim.Data.MSSQL { cmd.ExecuteNonQuery(); } - catch (Exception e) + catch (Exception) { return false; } -- cgit v1.1 From 1bf29d60e1a6839a1b81e0afc656a97f252e13cc Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Thu, 1 Sep 2011 22:05:05 +0100 Subject: Remove code which was automatically deleting non-root prims from scene objects that had previous been attachments. Looks like this code was accidentally uncommented in e1b5c612 from feb 2010. Appears to resolve the rest of http://opensimulator.org/mantis/view.php?id=5664 --- OpenSim/Data/MSSQL/MSSQLSimulationData.cs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'OpenSim/Data/MSSQL') diff --git a/OpenSim/Data/MSSQL/MSSQLSimulationData.cs b/OpenSim/Data/MSSQL/MSSQLSimulationData.cs index 78f80e1..bb59bba 100644 --- a/OpenSim/Data/MSSQL/MSSQLSimulationData.cs +++ b/OpenSim/Data/MSSQL/MSSQLSimulationData.cs @@ -84,21 +84,6 @@ namespace OpenSim.Data.MSSQL //New Migration settings Migration m = new Migration(conn, Assembly, "RegionStore"); m.Update(); - - // Clean dropped attachments - // - try - { - using (SqlCommand cmd = conn.CreateCommand()) - { - cmd.CommandText = "delete from prims where prims.UUID in (select UUID from primshapes where PCode = 9 and State <> 0); delete from primshapes where PCode = 9 and State <> 0"; - cmd.ExecuteNonQuery(); - } - } - catch (Exception ex) - { - _Log.Error("[REGION DB]: Error cleaning up dropped attachments: " + ex.Message); - } } } -- cgit v1.1