OSDN Git Service

Silence couple of warnings about unused variables
authorLatif Khalifa <latifer@streamgrid.net>
Sun, 2 Mar 2014 12:15:25 +0000 (13:15 +0100)
committerLatif Khalifa <latifer@streamgrid.net>
Sun, 2 Mar 2014 12:15:25 +0000 (13:15 +0100)
Radegast/Core/DAEExport.cs
Radegast/Core/PluginInterface/PluginManager.cs
Radegast/Core/RadegastInstance.cs

index 0a9a5f8..ca98c94 100755 (executable)
@@ -803,7 +803,6 @@ namespace Radegast
 
                 // Set tranform matrix (node position, rotation and scale)
                 var matrix = node.AppendChild(Doc.CreateElement("matrix"));
-                OpenTK.Matrix4 m;
 
                 var srt = Radegast.Rendering.Math3D.CreateSRTMatrix(obj.Prim.Scale, obj.Prim.Rotation, obj.Prim.Position);
                 string matrixVal = "";
index f1c0fc7..dcecf10 100644 (file)
@@ -166,7 +166,7 @@ namespace Radegast
                     if (domain != null && PluginsLoaded.Find(dinfo => { return dinfo.Domain == domain; }) == null)
                     {
                         try { AppDomain.Unload(domain); }
-                        catch (Exception ex) { Logger.Log("ERROR unloading application domain for : " + plug.FileName, Helpers.LogLevel.Debug); }
+                        catch (Exception ex) { Logger.Log("ERROR unloading application domain for : " + plug.FileName + "\n" + ex.Message, Helpers.LogLevel.Debug); }
                     }
                 }
             }
index 0253573..1e21aff 100644 (file)
@@ -720,7 +720,7 @@ namespace Radegast
                 Logger.Log(string.Format("Successfully created and locked marker file {0}", CrashMarkerFileName), Helpers.LogLevel.Debug);
                 return false || MonoRuntime;
             }
-            catch (Exception ex)
+            catch
             {
                 MarkerLock = null;
                 Logger.Log(string.Format("Another instance detected, marker fils {0} locked", CrashMarkerFileName), Helpers.LogLevel.Debug);