diff options
author | Justin Clarke Casey | 2008-09-26 15:28:14 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-09-26 15:28:14 +0000 |
commit | 97323345ee7953258c6902138c50265eac39c319 (patch) | |
tree | 383249b76c73023a318c3e60f2b5968c630240a6 | |
parent | * Apply http://opensimulator.org/mantis/view.php?id=2274 (diff) | |
download | opensim-SC-97323345ee7953258c6902138c50265eac39c319.zip opensim-SC-97323345ee7953258c6902138c50265eac39c319.tar.gz opensim-SC-97323345ee7953258c6902138c50265eac39c319.tar.bz2 opensim-SC-97323345ee7953258c6902138c50265eac39c319.tar.xz |
* minor: remove warnings
Diffstat (limited to '')
10 files changed, 18 insertions, 22 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs index 4a44321..a6d5b01 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs | |||
@@ -343,7 +343,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
343 | 343 | ||
344 | Rest.Log.DebugFormat("{0} POST ENTRY", MsgId); | 344 | Rest.Log.DebugFormat("{0} POST ENTRY", MsgId); |
345 | 345 | ||
346 | AvatarAppearance old = Rest.AvatarServices.GetUserAppearance(rdata.userProfile.ID); | 346 | //AvatarAppearance old = Rest.AvatarServices.GetUserAppearance(rdata.userProfile.ID); |
347 | 347 | ||
348 | rdata.userAppearance = new AvatarAppearance(); | 348 | rdata.userAppearance = new AvatarAppearance(); |
349 | 349 | ||
@@ -749,7 +749,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
749 | rdata.writer.WriteStartElement("Appearance"); | 749 | rdata.writer.WriteStartElement("Appearance"); |
750 | 750 | ||
751 | rdata.writer.WriteAttributeString("Height", rdata.userAppearance.AvatarHeight.ToString()); | 751 | rdata.writer.WriteAttributeString("Height", rdata.userAppearance.AvatarHeight.ToString()); |
752 | if (rdata.userAppearance.Owner != null) | 752 | if (!rdata.userAppearance.Owner.Equals(null)) |
753 | rdata.writer.WriteAttributeString("Owner", rdata.userAppearance.Owner.ToString()); | 753 | rdata.writer.WriteAttributeString("Owner", rdata.userAppearance.Owner.ToString()); |
754 | rdata.writer.WriteAttributeString("Serial", rdata.userAppearance.Serial.ToString()); | 754 | rdata.writer.WriteAttributeString("Serial", rdata.userAppearance.Serial.ToString()); |
755 | 755 | ||
diff --git a/OpenSim/Data/Tests/BasicAssetTest.cs b/OpenSim/Data/Tests/BasicAssetTest.cs index 53c9379..6546472 100644 --- a/OpenSim/Data/Tests/BasicAssetTest.cs +++ b/OpenSim/Data/Tests/BasicAssetTest.cs | |||
@@ -50,7 +50,7 @@ namespace OpenSim.Data.Tests | |||
50 | { | 50 | { |
51 | log4net.Config.XmlConfigurator.Configure(); | 51 | log4net.Config.XmlConfigurator.Configure(); |
52 | } | 52 | } |
53 | catch (Exception e) | 53 | catch (Exception) |
54 | { | 54 | { |
55 | // I don't care, just leave log4net off | 55 | // I don't care, just leave log4net off |
56 | } | 56 | } |
diff --git a/OpenSim/Data/Tests/BasicInventoryTest.cs b/OpenSim/Data/Tests/BasicInventoryTest.cs index ebba081..ea8e4e8 100644 --- a/OpenSim/Data/Tests/BasicInventoryTest.cs +++ b/OpenSim/Data/Tests/BasicInventoryTest.cs | |||
@@ -69,7 +69,7 @@ namespace OpenSim.Data.Tests | |||
69 | { | 69 | { |
70 | log4net.Config.XmlConfigurator.Configure(); | 70 | log4net.Config.XmlConfigurator.Configure(); |
71 | } | 71 | } |
72 | catch (Exception e) | 72 | catch (Exception) |
73 | { | 73 | { |
74 | // I don't care, just leave log4net off | 74 | // I don't care, just leave log4net off |
75 | } | 75 | } |
diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs index 6f0160f..f9c5565 100644 --- a/OpenSim/Data/Tests/BasicRegionTest.cs +++ b/OpenSim/Data/Tests/BasicRegionTest.cs | |||
@@ -51,7 +51,7 @@ namespace OpenSim.Data.Tests | |||
51 | { | 51 | { |
52 | log4net.Config.XmlConfigurator.Configure(); | 52 | log4net.Config.XmlConfigurator.Configure(); |
53 | } | 53 | } |
54 | catch (Exception e) | 54 | catch (Exception) |
55 | { | 55 | { |
56 | // I don't care, just leave log4net off | 56 | // I don't care, just leave log4net off |
57 | } | 57 | } |
diff --git a/OpenSim/Data/Tests/BasicUserTest.cs b/OpenSim/Data/Tests/BasicUserTest.cs index 36c8e21..9587d86 100644 --- a/OpenSim/Data/Tests/BasicUserTest.cs +++ b/OpenSim/Data/Tests/BasicUserTest.cs | |||
@@ -49,7 +49,7 @@ namespace OpenSim.Data.Tests | |||
49 | { | 49 | { |
50 | log4net.Config.XmlConfigurator.Configure(); | 50 | log4net.Config.XmlConfigurator.Configure(); |
51 | } | 51 | } |
52 | catch (Exception e) | 52 | catch (Exception) |
53 | { | 53 | { |
54 | // I don't care, just leave log4net off | 54 | // I don't care, just leave log4net off |
55 | } | 55 | } |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 39bda70..4027377 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -1242,8 +1242,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1242 | /// Send terrain layer information to the client. | 1242 | /// Send terrain layer information to the client. |
1243 | /// </summary> | 1243 | /// </summary> |
1244 | /// <param name="o"></param> | 1244 | /// <param name="o"></param> |
1245 | private void DoSendWindData(object o) | 1245 | //private void DoSendWindData(object o) |
1246 | { | 1246 | //{ |
1247 | //float[] map = (float[])o; | 1247 | //float[] map = (float[])o; |
1248 | 1248 | ||
1249 | //try | 1249 | //try |
@@ -1268,7 +1268,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1268 | //{ | 1268 | //{ |
1269 | // m_log.Warn("[CLIENT]: ClientView.API.cs: SendLayerData() - Failed with exception " + e.ToString()); | 1269 | // m_log.Warn("[CLIENT]: ClientView.API.cs: SendLayerData() - Failed with exception " + e.ToString()); |
1270 | // } | 1270 | // } |
1271 | } | 1271 | //} |
1272 | 1272 | ||
1273 | /// <summary> | 1273 | /// <summary> |
1274 | /// Sends a set of four patches (x, x+1, ..., x+3) to the client | 1274 | /// Sends a set of four patches (x, x+1, ..., x+3) to the client |
diff --git a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetTransactionsManager.cs b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetTransactionsManager.cs index 8d422aa..be8aeea 100644 --- a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetTransactionsManager.cs +++ b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetTransactionsManager.cs | |||
@@ -26,8 +26,8 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Collections.Generic; | 28 | using System.Collections.Generic; |
29 | using System.Reflection; | 29 | //using System.Reflection; |
30 | using log4net; | 30 | //using log4net; |
31 | using OpenMetaverse; | 31 | using OpenMetaverse; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Region.Environment.Scenes; | 33 | using OpenSim.Region.Environment.Scenes; |
@@ -37,8 +37,8 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
37 | { | 37 | { |
38 | public class AgentAssetTransactionsManager | 38 | public class AgentAssetTransactionsManager |
39 | { | 39 | { |
40 | private static readonly ILog m_log | 40 | //private static readonly ILog m_log |
41 | = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 41 | // = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
42 | 42 | ||
43 | /// <summary> | 43 | /// <summary> |
44 | /// Each agent has its own singleton collection of transactions | 44 | /// Each agent has its own singleton collection of transactions |
diff --git a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AssetXferUploader.cs b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AssetXferUploader.cs index 9c0888a..5484ad5 100644 --- a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AssetXferUploader.cs +++ b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AssetXferUploader.cs | |||
@@ -55,7 +55,6 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
55 | private IClientAPI ourClient; | 55 | private IClientAPI ourClient; |
56 | private UUID TransactionID = UUID.Zero; | 56 | private UUID TransactionID = UUID.Zero; |
57 | private sbyte type = 0; | 57 | private sbyte type = 0; |
58 | private bool UploadComplete; | ||
59 | private byte wearableType = 0; | 58 | private byte wearableType = 0; |
60 | public ulong XferID; | 59 | public ulong XferID; |
61 | 60 | ||
@@ -140,15 +139,12 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction | |||
140 | 139 | ||
141 | protected void RequestStartXfer() | 140 | protected void RequestStartXfer() |
142 | { | 141 | { |
143 | UploadComplete = false; | ||
144 | XferID = Util.GetNextXferID(); | 142 | XferID = Util.GetNextXferID(); |
145 | ourClient.SendXferRequest(XferID, m_asset.Type, m_asset.FullID, 0, new byte[0]); | 143 | ourClient.SendXferRequest(XferID, m_asset.Type, m_asset.FullID, 0, new byte[0]); |
146 | } | 144 | } |
147 | 145 | ||
148 | protected void SendCompleteMessage() | 146 | protected void SendCompleteMessage() |
149 | { | 147 | { |
150 | UploadComplete = true; | ||
151 | |||
152 | ourClient.SendAssetUploadCompleteMessage(m_asset.Type, true, m_asset.FullID); | 148 | ourClient.SendAssetUploadCompleteMessage(m_asset.Type, true, m_asset.FullID); |
153 | 149 | ||
154 | m_finished = true; | 150 | m_finished = true; |
diff --git a/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs b/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs index d7bc42f..fced389 100644 --- a/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs | |||
@@ -140,10 +140,10 @@ namespace OpenSim.Region.Environment.Modules | |||
140 | //m_log.Debug("[WIND]:Regenerating..."); | 140 | //m_log.Debug("[WIND]:Regenerating..."); |
141 | GenWindPos(); // Generate shared values once | 141 | GenWindPos(); // Generate shared values once |
142 | 142 | ||
143 | int spotxp = 0; | 143 | //int spotxp = 0; |
144 | int spotyp = 0; | 144 | //int spotyp = 0; |
145 | int spotxm = 0; | 145 | //int spotxm = 0; |
146 | int spotym = 0; | 146 | //int spotym = 0; |
147 | List<ScenePresence> avatars = m_scene.GetAvatars(); | 147 | List<ScenePresence> avatars = m_scene.GetAvatars(); |
148 | foreach (ScenePresence avatar in avatars) | 148 | foreach (ScenePresence avatar in avatars) |
149 | { | 149 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptBaseClass.cs b/OpenSim/Region/ScriptEngine/Common/ScriptBaseClass.cs index 1bcccf1..b5a7196 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptBaseClass.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptBaseClass.cs | |||
@@ -72,7 +72,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
72 | 72 | ||
73 | private Executor m_Exec; | 73 | private Executor m_Exec; |
74 | 74 | ||
75 | private string m_state = "default"; | 75 | //private string m_state = "default"; |
76 | 76 | ||
77 | public void state(string newState) | 77 | public void state(string newState) |
78 | { | 78 | { |