[chronojump] Deletes more warnings for non-used variables.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Deletes more warnings for non-used variables.
- Date: Sun, 16 Oct 2016 18:02:02 +0000 (UTC)
commit 0ff4bd775c861998ab2e05da07b10bf1485b6af8
Author: Carles Pina i Estany <carles pina cat>
Date: Sun Oct 16 19:55:23 2016 +0200
Deletes more warnings for non-used variables.
If the variables were used in commented code just below: it comments the
variables definition as well.
src/execute/run.cs | 3 ++-
src/gui/chronojump.cs | 12 ++++++------
src/gui/person.cs | 4 ++--
src/stats/chronojumpProfile.cs | 4 ++--
src/util.cs | 1 -
5 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/execute/run.cs b/src/execute/run.cs
index 0e5b54b..af83112 100644
--- a/src/execute/run.cs
+++ b/src/execute/run.cs
@@ -251,7 +251,8 @@ public class RunExecute : EventExecute
else if(checkDoubleContactMode ==
Constants.DoubleContact.LAST) {
//user want last flight time,
take that
- timestamp = timestamp;
+ // It doesn't change the
timestamp so this is the same as:
+ // timestamp = timestamp;
}
else { /* do the avg of all flights
and contacts
then add to last timestamp
*/
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 7208851..f774fd8 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2543,12 +2543,12 @@ public partial class ChronoJumpWindow
rowToSelect);
sensitiveGuiYesPerson();
- string myString = string.Format(
- Catalog.GetPluralString(
- "Successfully added one person.",
- "Successfully added {0} persons.",
- personAddMultipleWin.PersonsCreatedCount),
- personAddMultipleWin.PersonsCreatedCount);
+ // string myString = string.Format(
+ // Catalog.GetPluralString(
+ // "Successfully added one person.",
+ // "Successfully added {0} persons.",
+ // personAddMultipleWin.PersonsCreatedCount),
+ // personAddMultipleWin.PersonsCreatedCount);
//appbar2.Push( 1, Catalog.GetString(myString) );
}
}
diff --git a/src/gui/person.cs b/src/gui/person.cs
index 48cbcbf..c299a89 100644
--- a/src/gui/person.cs
+++ b/src/gui/person.cs
@@ -584,7 +584,7 @@ public class PersonsRecuperateFromOtherSessionWindow : PersonRecuperateWindow
Sqlite.Close();
//do the transaction
- SqlitePersonSessionTransaction psTr = new
SqlitePersonSessionTransaction(personSessions);
+ new SqlitePersonSessionTransaction(personSessions);
}
updateStoreAndEnd();
@@ -2250,7 +2250,7 @@ public class PersonAddMultipleWindow {
}
//do the transaction
- SqlitePersonSessionTransaction psTr = new SqlitePersonSessionTransaction(persons,
personSessions);
+ new SqlitePersonSessionTransaction(persons, personSessions);
}
public Button Button_accept
diff --git a/src/stats/chronojumpProfile.cs b/src/stats/chronojumpProfile.cs
index 833e2c8..863155e 100644
--- a/src/stats/chronojumpProfile.cs
+++ b/src/stats/chronojumpProfile.cs
@@ -65,7 +65,7 @@ public class StatChronojumpProfile : Stat
public override void PrepareData()
{
- string sessionString = obtainSessionSqlString(sessions, "jump");
+ //string sessionString = obtainSessionSqlString(sessions, "jump");
//if(sessions.Count > 1) {
// multisession = true;
//}
@@ -105,7 +105,7 @@ public class StatChronojumpProfile : Stat
// statsJumpsType, limit),
// true, dataColumns);
- string [] sessionFull = sessions[0].ToString().Split(new char[] {':'});
+ //string [] sessionFull = sessions[0].ToString().Split(new char[] {':'});
//SqliteStat.SelectChronojumpProfile(sessionFull[0]);
//processDataSimpleSession
(SqliteStat.SelectChronojumpProfile(sessionFull[0]), true, dataColumns);
//}
diff --git a/src/util.cs b/src/util.cs
index 5997375..c1a6e27 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -668,7 +668,6 @@ public class Util
//Calcule the potential energies before (mass * g * fallHeight) and after the jump (mass * g
* tv^2 * 1.226)
//and divide by the time during force is applied
double g = 9.81;
- double tt = tc + tf; //totalTime
fallHeight = fallHeight / 100.0; //cm -> m
return mass * g * ( fallHeight + 1.226 * Math.Pow(tf,2) ) / (Double)tc;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]