[smuxi: 98/179] Frontend(-GNOME & -Curses): fix warnings



commit 55fd17e463666a4d9d306c499157f04b37a464d3
Author: Andres G. Aragoneses <knocte gmail com>
Date:   Fri Oct 21 18:07:28 2016 +0800

    Frontend(-GNOME & -Curses): fix warnings

 src/Frontend-Curses/Frontend.cs  |    2 --
 src/Frontend-Curses/LogWidget.cs |    3 +--
 src/Frontend-GNOME/Frontend.cs   |    2 --
 src/Frontend/CommandManager.cs   |    5 ++++-
 4 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/Frontend-Curses/Frontend.cs b/src/Frontend-Curses/Frontend.cs
index b1835c5..f1a60c9 100644
--- a/src/Frontend-Curses/Frontend.cs
+++ b/src/Frontend-Curses/Frontend.cs
@@ -42,7 +42,6 @@ namespace Smuxi.Frontend.Curses
         private static readonly string    _Name = "smuxi";
         private static readonly string    _UIName = "Curses";
         private static Version            _Version;
-        private static string             _VersionNumber;
         private static string             _VersionString;
         private static Version            _EngineVersion;
         private static MainWindow         _MainWindow;
@@ -135,7 +134,6 @@ namespace Smuxi.Frontend.Curses
             AssemblyProductAttribute pr = (AssemblyProductAttribute)asm.
                 GetCustomAttributes(typeof(AssemblyProductAttribute), false)[0];
             _Version = asm_name.Version;
-            _VersionNumber = asm_name.Version.ToString();
             _VersionString = pr.Product + " - " + _UIName + " frontend " + _Version;
 
 #if LOG4NET
diff --git a/src/Frontend-Curses/LogWidget.cs b/src/Frontend-Curses/LogWidget.cs
index cbcfa2c..e78a73a 100644
--- a/src/Frontend-Curses/LogWidget.cs
+++ b/src/Frontend-Curses/LogWidget.cs
@@ -39,8 +39,7 @@ namespace Smuxi.Frontend.Curses
     public class LogWidget : Widget {
        string [] messages = new string [80];
        int head, tail;
-       int count;
-       
+
        public LogWidget (int x, int y, int w, int h) : base (x, y, w, h)
        {
                //Fill = Fill.Horizontal | Fill.Vertical;
diff --git a/src/Frontend-GNOME/Frontend.cs b/src/Frontend-GNOME/Frontend.cs
index 1bea8f4..3314e5b 100644
--- a/src/Frontend-GNOME/Frontend.cs
+++ b/src/Frontend-GNOME/Frontend.cs
@@ -1128,7 +1128,6 @@ namespace Smuxi.Frontend.Gnome
                                 HasSystemIconTheme ? "system" : "built-in");
 #endif
 
-            var unityWithLightIcons = false;
             if (Frontend.IsUnity) {
                 var sysGtkTheme = settings.ThemeName ?? String.Empty;
                 var sysIconTheme = GetGtkIconThemeName() ?? String.Empty;
@@ -1143,7 +1142,6 @@ namespace Smuxi.Frontend.Gnome
                     _Logger.Debug("InitGtk(): Detected Ambiance theme with "+
                                   "light icons");
 #endif
-                    unityWithLightIcons = true;
                 }
             }
             var appIconDir = Path.Combine(appDir, "icons");
diff --git a/src/Frontend/CommandManager.cs b/src/Frontend/CommandManager.cs
index baf66de..de83abe 100644
--- a/src/Frontend/CommandManager.cs
+++ b/src/Frontend/CommandManager.cs
@@ -427,7 +427,10 @@ namespace Smuxi.Frontend
                                          "#smuxi-devel");
                 }
                 if (toMessage) {
-                    var msg = builder.ToMessage();
+
+                    // NOTE: this would seem useless because we ignore the resulting msg,
+                    // but this is a benchmark method
+                    builder.ToMessage();
                 }
             }
             stop = DateTime.UtcNow;


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