[chronojump/different_glades: 2/8] Fixes warnings: variables that were assigned a literal and never used.



commit 258172cee1745f17ff788c0cf11131fc9ba1beed
Author: Carles Pina i Estany <carles pina cat>
Date:   Wed Oct 12 17:00:57 2016 +0200

    Fixes warnings: variables that were assigned a literal and never used.

 src/chronojump.cs              |    3 ---
 src/gui/person.cs              |    4 ----
 src/sqlite/main.cs             |    2 --
 src/stats/chronojumpProfile.cs |    2 --
 4 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/src/chronojump.cs b/src/chronojump.cs
index 4849049..ce85b74 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -221,7 +221,6 @@ public class ChronoJump
        string versionAvailable;
        //bool pingStart;
        //bool pingEnd;
-       bool pulseGTKPingShouldEnd;
        bool allSQLCallsDoneOnSqliteThingsThread;
 
        //used when Chronojump is being running two or more times (quadriple-click on start)
@@ -491,7 +490,6 @@ public class ChronoJump
        private void findVersion() {
                LogB.Debug("--1--");
                //pingStart = true;
-               pulseGTKPingShouldEnd = false;
                splashShowButton = true;
                
                LogB.Debug("--2--");
@@ -527,7 +525,6 @@ public class ChronoJump
                
        private void on_find_version_cancelled(object o, EventArgs args) {
                splashShowButton = false;
-               pulseGTKPingShouldEnd = true;
                versionAvailable = Constants.ServerOffline;
                //pingEnd = true;
        }
diff --git a/src/gui/person.cs b/src/gui/person.cs
index 662b441..bdafc3e 100644
--- a/src/gui/person.cs
+++ b/src/gui/person.cs
@@ -1040,20 +1040,16 @@ public class PersonAddModifyWindow
 
        void on_entries_required_changed (object o, EventArgs args)
        {
-               bool allOk = true;
-               
                if(entry1.Text.ToString().Length > 0)
                        image_name.Hide();
                else {
                        image_name.Show();
-                       allOk = false;
                }
 
                if((double) spinbutton_weight.Value > 0)
                        image_weight.Hide();
                else {
                        image_weight.Show();
-                       allOk = false;
                }
        
                /*              
diff --git a/src/sqlite/main.cs b/src/sqlite/main.cs
index e32cba6..472ace8 100644
--- a/src/sqlite/main.cs
+++ b/src/sqlite/main.cs
@@ -1911,7 +1911,6 @@ class Sqlite
                        // that crashes mac (Linux 100)
                        // ----------------------------------------------
                        LogB.SQL("Leaving Sqlite opened before DB updates");
-                       bool sqliteOpened = true;
        
                        Sqlite.Open(); //------------------------------------------------
 
@@ -2004,7 +2003,6 @@ class Sqlite
                        // --- end of update, close DB
 
                        LogB.SQL("Closing Sqlite after DB updates");
-                       sqliteOpened = false;
 
                        Sqlite.Close(); //------------------------------------------------
                }
diff --git a/src/stats/chronojumpProfile.cs b/src/stats/chronojumpProfile.cs
index aad519b..833e2c8 100644
--- a/src/stats/chronojumpProfile.cs
+++ b/src/stats/chronojumpProfile.cs
@@ -66,12 +66,10 @@ public class StatChronojumpProfile : Stat
        public override void PrepareData() 
        {
                string sessionString = obtainSessionSqlString(sessions, "jump");
-               bool multisession = false;
                //if(sessions.Count > 1) {
                //      multisession = true;
                //}
 
-               string indexType = "ChronojumpProfile";
                /*
                if(statsJumpsType == 3) { //avg of each jumper
                        if(multisession) {


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