From 3c596e47c6322ef608233fb45624c2f26fa6b5f0 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sun, 10 May 2015 21:54:24 -0700 Subject: Knocked off a few compiler warnings regarding unused variables. --- OpenSim/Region/CoreModules/World/Terrain/Modifiers/FillModifier.cs | 1 - OpenSim/Region/CoreModules/World/Terrain/Modifiers/LowerModifier.cs | 1 - OpenSim/Region/CoreModules/World/Terrain/Modifiers/MaxModifier.cs | 1 - OpenSim/Region/CoreModules/World/Terrain/Modifiers/MinModifier.cs | 1 - OpenSim/Region/CoreModules/World/Terrain/Modifiers/NoiseModifier.cs | 1 - OpenSim/Region/CoreModules/World/Terrain/Modifiers/RaiseModifier.cs | 1 - OpenSim/Region/CoreModules/World/Terrain/Modifiers/SmoothModifier.cs | 1 - OpenSim/Services/HypergridService/HGInstantMessageService.cs | 2 +- 8 files changed, 1 insertion(+), 8 deletions(-) diff --git a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/FillModifier.cs b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/FillModifier.cs index 0df7132..32f1de9 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/FillModifier.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/FillModifier.cs @@ -40,7 +40,6 @@ namespace OpenSim.Region.CoreModules.World.Terrain.Modifiers public override string ModifyTerrain(ITerrainChannel map, string[] args) { - string val; string result; if (args.Length < 3) { diff --git a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/LowerModifier.cs b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/LowerModifier.cs index 3e4a457..2ab4bcc 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/LowerModifier.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/LowerModifier.cs @@ -38,7 +38,6 @@ namespace OpenSim.Region.CoreModules.World.Terrain.Modifiers public override string ModifyTerrain(ITerrainChannel map, string[] args) { - string val; string result; if (args.Length < 3) { diff --git a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/MaxModifier.cs b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/MaxModifier.cs index 02f1852..0939c0a 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/MaxModifier.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/MaxModifier.cs @@ -38,7 +38,6 @@ namespace OpenSim.Region.CoreModules.World.Terrain.Modifiers public override string ModifyTerrain(ITerrainChannel map, string[] args) { - string val; string result; if (args.Length < 3) { diff --git a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/MinModifier.cs b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/MinModifier.cs index 2db49c8..cbbccc0 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/MinModifier.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/MinModifier.cs @@ -38,7 +38,6 @@ namespace OpenSim.Region.CoreModules.World.Terrain.Modifiers public override string ModifyTerrain(ITerrainChannel map, string[] args) { - string val; string result; if (args.Length < 3) { diff --git a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/NoiseModifier.cs b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/NoiseModifier.cs index 53a64df..d6b95d0 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/NoiseModifier.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/NoiseModifier.cs @@ -39,7 +39,6 @@ namespace OpenSim.Region.CoreModules.World.Terrain.Modifiers public override string ModifyTerrain(ITerrainChannel map, string[] args) { - string val; string result; if (args.Length < 3) { diff --git a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/RaiseModifier.cs b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/RaiseModifier.cs index 9ac1edd..35fb9d6 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/RaiseModifier.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/RaiseModifier.cs @@ -38,7 +38,6 @@ namespace OpenSim.Region.CoreModules.World.Terrain.Modifiers public override string ModifyTerrain(ITerrainChannel map, string[] args) { - string val; string result; if (args.Length < 3) { diff --git a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/SmoothModifier.cs b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/SmoothModifier.cs index 72b172c..9f8d5b2 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/Modifiers/SmoothModifier.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/Modifiers/SmoothModifier.cs @@ -38,7 +38,6 @@ namespace OpenSim.Region.CoreModules.World.Terrain.Modifiers public override string ModifyTerrain(ITerrainChannel map, string[] args) { - string val; string result; if (args.Length < 3) { diff --git a/OpenSim/Services/HypergridService/HGInstantMessageService.cs b/OpenSim/Services/HypergridService/HGInstantMessageService.cs index dde0e6c..32ca09a 100644 --- a/OpenSim/Services/HypergridService/HGInstantMessageService.cs +++ b/OpenSim/Services/HypergridService/HGInstantMessageService.cs @@ -105,7 +105,7 @@ namespace OpenSim.Services.HypergridService { m_UserAgentService = ServerUtils.LoadPlugin(userAgentService, args); } - catch (Exception e) + catch { m_log.WarnFormat("[HG IM SERVICE]: Unable to create User Agent Service. Missing config var in [HGInstantMessageService]?"); } -- cgit v1.1