[longomatch] Fix some warnings



commit 094b22a2f8715cee0db0ce7048cbe6fc6326be0e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Jun 25 14:44:09 2013 +0200

    Fix some warnings

 LongoMatch.GUI/Gui/Base/TimeScaleBase.cs        |    4 ----
 LongoMatch.GUI/Gui/Dialog/EditCategoryDialog.cs |    9 ++++-----
 LongoMatch.Services/Services/DataBase.cs        |    1 +
 3 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Base/TimeScaleBase.cs b/LongoMatch.GUI/Gui/Base/TimeScaleBase.cs
index 589e166..c5bb07f 100644
--- a/LongoMatch.GUI/Gui/Base/TimeScaleBase.cs
+++ b/LongoMatch.GUI/Gui/Base/TimeScaleBase.cs
@@ -56,10 +56,6 @@ namespace LongoMatch.Gui.Base
                uint currentFrame;
                T selected= default(T);
                
-               Menu deleteMenu;
-               Menu menu;
-               MenuItem delete;
-
                Pango.Layout layout;
                
                protected Dictionary<MenuItem,T> menuToNodeDict;
diff --git a/LongoMatch.GUI/Gui/Dialog/EditCategoryDialog.cs b/LongoMatch.GUI/Gui/Dialog/EditCategoryDialog.cs
index 1ed3600..7bc1e6d 100644
--- a/LongoMatch.GUI/Gui/Dialog/EditCategoryDialog.cs
+++ b/LongoMatch.GUI/Gui/Dialog/EditCategoryDialog.cs
@@ -19,16 +19,15 @@
 using System;
 using System.Collections.Generic;
 using Gtk;
-using LongoMatch.Store;
-using LongoMatch.Handlers;
-using LongoMatch.Gui.Component;
-using LongoMatch.Gui;
 using Mono.Unix;
 
+using LongoMatch.Handlers;
+using LongoMatch.Gui;
+using LongoMatch.Gui.Component;
+using LongoMatch.Gui.Helpers;
 using LongoMatch.Store;
 using LongoMatch.Store.Templates;
 using LongoMatch.Interfaces;
-using LongoMatch.Gui.Helpers;
 
 namespace LongoMatch.Gui.Dialog
 {
diff --git a/LongoMatch.Services/Services/DataBase.cs b/LongoMatch.Services/Services/DataBase.cs
index 6cb3fd4..f369594 100644
--- a/LongoMatch.Services/Services/DataBase.cs
+++ b/LongoMatch.Services/Services/DataBase.cs
@@ -101,6 +101,7 @@ namespace LongoMatch.DB
                                File.Delete (DBFile);
                                return true;
                        } catch (Exception ex) {
+                               Log.Exception (ex);
                                return false;
                        }
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]