[chronojump] Fixes warnings - stops assigning variables that are not used.



commit fbdd7f16766866cb0d84bec06fb22834fd0eeecd
Author: Carles Pina i Estany <carles pina cat>
Date:   Mon Oct 17 11:11:55 2016 +0200

    Fixes warnings - stops assigning variables that are not used.

 src/gui/encoder.cs |    5 ++++-
 src/statType.cs    |    3 ---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index ae64b10..3d91892 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -5485,7 +5485,10 @@ public partial class ChronoJumpWindow
                                if(encoderSignalUniqueID != "-1")
                                {
 
-                                       string eccon = findEccon(true);
+                                       // TODO: we never use findEccon() return value. We might be able to 
stop calling findEccon()
+                                       // since it doesn't seem to do anything else other than returning the 
value.
+                                       // This needs to be checked if working on this code.
+                                       findEccon(true);
 
                                        /*
                                         * (0) open Sqlite
diff --git a/src/statType.cs b/src/statType.cs
index 9462af4..66aeae1 100644
--- a/src/statType.cs
+++ b/src/statType.cs
@@ -71,7 +71,6 @@ public class StatType {
 
        bool graph;
        bool toReport;
-       Preferences preferences;
        
        TextWriter writer;
        string fileName;
@@ -116,7 +115,6 @@ public class StatType {
                
                this.graph = graph;
                this.toReport = toReport;
-               this.preferences = preferences;
 
                myStatTypeStruct = new StatTypeStruct (
                                statisticApplyTo,
@@ -170,7 +168,6 @@ public class StatType {
                
                this.graph = graph;
                this.toReport = toReport;
-               this.preferences = preferences;
 
                this.writer = writer;
                this.fileName = fileName;


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