[chronojump] Fixes warnings: deletes more non-used variables.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixes warnings: deletes more non-used variables.
- Date: Sun, 16 Oct 2016 17:46:23 +0000 (UTC)
commit eb1f6ae24f0d75bab965456c1f808943bc526cd3
Author: Carles Pina i Estany <carles pina cat>
Date: Sun Oct 16 19:45:52 2016 +0200
Fixes warnings: deletes more non-used variables.
src/encoder.cs | 5 -----
src/gui/chronopicWizard.cs | 6 ------
src/gui/encoderSelectRepetitions.cs | 1 -
src/gui/encoderTreeviews.cs | 5 ++---
src/gui/eventExecute.cs | 16 +++-------------
src/gui/executeAuto.cs | 1 -
src/gui/person.cs | 3 ---
src/gui/stats.cs | 2 --
src/jumpsProfile.cs | 6 ------
9 files changed, 5 insertions(+), 40 deletions(-)
---
diff --git a/src/encoder.cs b/src/encoder.cs
index a250df2..6cf6bed 100644
--- a/src/encoder.cs
+++ b/src/encoder.cs
@@ -28,8 +28,6 @@ using Mono.Unix;
public class EncoderParams
{
- private int time;
-
//graph.R need both to know displacedMass depending on encoderConfiguration
//and plot both as entry data in the table of result data
private string massBody; //to pass always as "." to R.
@@ -114,9 +112,6 @@ public class EncoderParams
get { return analysis; }
}
- public int Time {
- get { return time; }
- }
~EncoderParams() {}
}
diff --git a/src/gui/chronopicWizard.cs b/src/gui/chronopicWizard.cs
index c47e55b..10f94ed 100644
--- a/src/gui/chronopicWizard.cs
+++ b/src/gui/chronopicWizard.cs
@@ -30,7 +30,6 @@ public class ChronopicWizardWindow
{
[Widget] Gtk.Window chronopic_wizard_win;
[Widget] Gtk.Notebook notebook_main;
- [Widget] Gtk.Button button_cancel;
[Widget] Gtk.Button button_next;
//tab 0 start
@@ -41,16 +40,13 @@ public class ChronopicWizardWindow
//tab 1 unplug
[Widget] Gtk.Label label_unplug;
[Widget] Gtk.Notebook notebook_unplugged;
- [Widget] Gtk.Button button_done_unplugged;
[Widget] Gtk.TextView textview_detected_unplugged;
//tab 2 contacts
- [Widget] Gtk.Frame frame_detection_contacts;
[Widget] Gtk.Notebook notebook_contacts;
[Widget] Gtk.Button button_done_contacts;
[Widget] Gtk.HBox hbox_detection_contacts;
[Widget] Gtk.ProgressBar progressbar_contacts;
- [Widget] Gtk.Button button_cancel_contacts;
[Widget] Gtk.RadioButton radio_contacts1;
[Widget] Gtk.RadioButton radio_contacts2;
[Widget] Gtk.RadioButton radio_contacts3;
@@ -58,12 +54,10 @@ public class ChronopicWizardWindow
[Widget] Gtk.RadioButton radio_contacts5;
//tab 3 encoder
- [Widget] Gtk.Frame frame_detection_encoder;
[Widget] Gtk.Notebook notebook_encoder;
[Widget] Gtk.Button button_done_encoder;
[Widget] Gtk.HBox hbox_detection_encoder;
[Widget] Gtk.ProgressBar progressbar_encoder;
- [Widget] Gtk.Button button_cancel_encoder;
[Widget] Gtk.RadioButton radio_encoder1;
[Widget] Gtk.RadioButton radio_encoder2;
[Widget] Gtk.RadioButton radio_encoder3;
diff --git a/src/gui/encoderSelectRepetitions.cs b/src/gui/encoderSelectRepetitions.cs
index eae751a..7b98e18 100644
--- a/src/gui/encoderSelectRepetitions.cs
+++ b/src/gui/encoderSelectRepetitions.cs
@@ -603,7 +603,6 @@ public class EncoderSelectRepetitionsGroupalCurrentSession : EncoderSelectRepeti
exerciseID, "curve", EncoderSQL.Eccons.ALL,
false, true);
- int activeCurves = UtilEncoder.GetActiveCurvesNum(eSQLarray);
int allCurves = eSQLarray.Count;
string [] s = { p.UniqueID.ToString(), "", p.Name,
diff --git a/src/gui/encoderTreeviews.cs b/src/gui/encoderTreeviews.cs
index 42cdd37..5bb1789 100644
--- a/src/gui/encoderTreeviews.cs
+++ b/src/gui/encoderTreeviews.cs
@@ -442,7 +442,6 @@ public partial class ChronoJumpWindow
TreePath path = encoderCaptureListStore.GetPath(iter);
EncoderCurve curve = (EncoderCurve) encoderCaptureListStore.GetValue (iter, 0);
- bool found = false;
string eccon = findEccon(true);
if(eccon == "c") {
if(Convert.ToDouble(curve.Start) <= msCentral &&
@@ -517,7 +516,6 @@ public partial class ChronoJumpWindow
ArrayList encoderAnalyzeCurves = new ArrayList ();
//write exercise and extra weight data
- ArrayList curvesData = new ArrayList();
string exerciseName = "";
double totalMass = 0;
if(radio_encoder_analyze_individual_current_set.Active) { //current set
@@ -525,10 +523,11 @@ public partial class ChronoJumpWindow
totalMass = findMass(Constants.MassType.DISPLACED);
} else { //not current set
//TODO:
- curvesData = SqliteEncoder.Select(
+ /*SqliteEncoder.Select(
false, -1, currentPerson.UniqueID, currentSession.UniqueID,
currentEncoderGI,
-1, "curve", EncoderSQL.Eccons.ALL,
true, true);
+ */
}
string line;
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 1a0f8c9..ade0a59 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -126,7 +126,6 @@ public partial class ChronoJumpWindow
string event_execute_label_simulated;
- int event_execute_personID;
//int sessionID;
//string event_execute_personName;
string event_execute_tableName;
@@ -138,8 +137,6 @@ public partial class ChronoJumpWindow
UNSTARTED, DOING, DONE
}
- int event_execute_radio = 8; //radious of the circles
- int event_execute_arcSystemCorrection = 0; //on Windows circles are paint just one pixel left, fix it
int event_execute_rightMargin = 35; //at the right we write text (on windows we change later)
/*
@@ -149,7 +146,6 @@ public partial class ChronoJumpWindow
* on 0.7.5.2 and before, we always cancel,
* and this produces and endless loop when event has ended, because there's nothing to cancel
*/
- bool eventHasEnded;
//ExecutingGraphData executingGraphData;
@@ -161,9 +157,11 @@ public partial class ChronoJumpWindow
static EventGraphConfigureWindow eventGraphConfigureWin;
- private static string [] comboGraphResultsSize = {
+ /* Used only by commented code
+ private static string [] comboGraphResultsSize = {
"100", "200", "300", "400", "500"
};
+ */
private void event_execute_initializeVariables (
@@ -180,7 +178,6 @@ public partial class ChronoJumpWindow
if(UtilAll.IsWindows()) {
event_execute_rightMargin = 55;
- event_execute_arcSystemCorrection = 1;
}
event_execute_configureColors();
@@ -198,7 +195,6 @@ public partial class ChronoJumpWindow
//this.event_execute_personName.Text = event_execute_personName; //"Jumps"
(rjInterval), "Runs" (runInterval), "Ticks" (pulses),
this.event_execute_label_phases_name.Text = phasesName; //"Jumps" (rjInterval),
"Runs" (runInterval), "Ticks" (pulses),
//"Phases" (simple jumps, dj, simple runs)
- this.event_execute_personID = personID;
this.event_execute_tableName = tableName;
this.event_execute_eventType = event_execute_eventType;
@@ -247,8 +243,6 @@ public partial class ChronoJumpWindow
}
private ExecutingGraphData event_execute_prepareForTest ()
{
- eventHasEnded = false;
-
checkbutton_video.Sensitive = false;
if(preferences.videoOn) {
capturer.ClickRec();
@@ -1474,9 +1468,6 @@ public partial class ChronoJumpWindow
string [] myTimesStringFull = timesString.Split(new char[] {'='});
int count = 0;
- int added0Value = 0;
- if(startIn)
- added0Value = 1;
double oldValue = 0;
double myTimeDouble = 0;
@@ -2019,7 +2010,6 @@ public partial class ChronoJumpWindow
private void on_event_execute_EventEnded(object o, EventArgs args) {
hideButtons();
- eventHasEnded = true;
checkbutton_video.Sensitive = true;
if(preferences.videoOn) {
diff --git a/src/gui/executeAuto.cs b/src/gui/executeAuto.cs
index 28478e5..462beb7 100644
--- a/src/gui/executeAuto.cs
+++ b/src/gui/executeAuto.cs
@@ -231,7 +231,6 @@ public class ExecuteAutoWindow
private void on_treeview_load_button_release_event (object o, ButtonReleaseEventArgs args) {
Gdk.EventButton e = args.Event;
- Gtk.TreeView myTv = (Gtk.TreeView) o;
if (e.Button == 3) {
Menu myMenu = new Menu ();
Gtk.MenuItem myItem;
diff --git a/src/gui/person.cs b/src/gui/person.cs
index 7e9eed0..48cbcbf 100644
--- a/src/gui/person.cs
+++ b/src/gui/person.cs
@@ -548,8 +548,6 @@ public class PersonsRecuperateFromOtherSessionWindow : PersonRecuperateWindow
{
Gtk.TreeIter iter;
bool val;
- int count = 0;
- bool found = false;
List <PersonSession> personSessions = new List<PersonSession>();
int psID;
@@ -579,7 +577,6 @@ public class PersonsRecuperateFromOtherSessionWindow : PersonRecuperateWindow
);
inserted ++;
- found = true;
}
} while ( store.IterNext(ref iter) );
diff --git a/src/gui/stats.cs b/src/gui/stats.cs
index c7a8196..9109698 100644
--- a/src/gui/stats.cs
+++ b/src/gui/stats.cs
@@ -112,8 +112,6 @@ public partial class ChronoJumpWindow {
[Widget] Gtk.Label label_stats_x_axis;
- //bool statsAutomatic = true;
- bool statsAutomatic = false;
bool statsColumnsToRemove = false;
//selected sessions
ArrayList selectedSessions;
diff --git a/src/jumpsProfile.cs b/src/jumpsProfile.cs
index 626b461..d6326f2 100644
--- a/src/jumpsProfile.cs
+++ b/src/jumpsProfile.cs
@@ -32,9 +32,6 @@ public class JumpsProfileIndex
public Cairo.Color Color;
public string ErrorMessage;
- private string jumpHigherName;
- private string jumpLowerName;
-
public enum Types { FMAX, FEXPL, CELAST, CARMS, FREACT }
public Types type;
@@ -71,9 +68,6 @@ public class JumpsProfileIndex
break;
}
- this.jumpHigherName = jumpHigherName;
- this.jumpLowerName = jumpLowerName;
-
ErrorMessage = "";
Result = calculateIndex(type, higher, lower, dja);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]