[chronojump] Fixes warnings: variables that were assigned a literal and never used.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixes warnings: variables that were assigned a literal and never used.
- Date: Thu, 13 Oct 2016 09:44:49 +0000 (UTC)
commit 0e65c440b1b99991fa0d8f7ac2b3b6c12ddcc32a
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]