[chronojump] Fixes warnings: deletes defined and never used variables.



commit 23390f29be1126db9d6e381e9bad5baa9cb70985
Author: Carles Pina i Estany <carles pina cat>
Date:   Tue Oct 11 23:24:57 2016 +0200

    Fixes warnings: deletes defined and never used variables.
    
    Deletes "The private field 'blah' is never used" warnings.

 src/chronojump.cs        |    2 --
 src/encoder.cs           |   11 -----------
 src/gui/chronojump.cs    |    7 -------
 src/gui/genericWindow.cs |    1 -
 src/gui/networks.cs      |    2 --
 src/gui/person.cs        |    4 +---
 src/gui/presentation.cs  |    4 ----
 7 files changed, 1 insertions(+), 30 deletions(-)
---
diff --git a/src/chronojump.cs b/src/chronojump.cs
index 266fe70..4849049 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -39,8 +39,6 @@ public class ChronoJump
        private static string progVersion = ""; //now in "version" file
        private static string progName = "Chronojump";
        
-       private static string runningFolder;    
-
        private string runningFileName; //useful for knowing if there are two chronojump instances
        private string messageToShowOnBoot = "";
        private string messageCrashedBefore = "";
diff --git a/src/encoder.cs b/src/encoder.cs
index ee67201..35a261d 100644
--- a/src/encoder.cs
+++ b/src/encoder.cs
@@ -53,17 +53,6 @@ public class EncoderParams
        private int curve;
        private int width;
        private int height;
-       private double heightHigherCondition;
-       private double heightLowerCondition;
-       private double meanSpeedHigherCondition;
-       private double meanSpeedLowerCondition;
-       private double maxSpeedHigherCondition;
-       private double maxSpeedLowerCondition;
-       private int powerHigherCondition;
-       private int powerLowerCondition;
-       private int peakPowerHigherCondition;
-       private int peakPowerLowerCondition;
-       private string mainVariable;
        private string decimalSeparator;        //used in export data from R to csv
        //private bool inverted; //used only in runEncoderCapturePython. In graph.R will be used 
encoderConfigurationName
 
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 246fef3..064dc93 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -100,15 +100,8 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Image image_mode_reaction_times_small;
        [Widget] Gtk.Image image_mode_pulses_small;
        [Widget] Gtk.Image image_mode_multi_chronopic_small;
-       [Widget] Gtk.Label label_mode_jumps_small;
-       [Widget] Gtk.Label label_mode_jumps_reactive_small;
-       [Widget] Gtk.Label label_mode_runs_small;
-       [Widget] Gtk.Label label_mode_runs_intervallic_small;
        [Widget] Gtk.Image image_mode_encoder_gravitatory;
        [Widget] Gtk.Image image_mode_encoder_inertial;
-       [Widget] Gtk.Label label_mode_reaction_times_small;
-       [Widget] Gtk.Label label_mode_pulses_small;
-       [Widget] Gtk.Label label_mode_multi_chronopic_small;
 
        [Widget] Gtk.Image image_persons_new_1;
        [Widget] Gtk.Image image_persons_new_plus;
diff --git a/src/gui/genericWindow.cs b/src/gui/genericWindow.cs
index 7b08543..e66ac3b 100644
--- a/src/gui/genericWindow.cs
+++ b/src/gui/genericWindow.cs
@@ -35,7 +35,6 @@ public class GenericWindow
        [Widget] Gtk.Label label_header;
        [Widget] Gtk.Box hbox_error;
        [Widget] Gtk.Label label_error;
-       [Widget] Gtk.Label label_generic_name;
        [Widget] Gtk.Entry entry;
        
        [Widget] Gtk.Box hbox_spin_int;
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index d730860..7806949 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -39,7 +39,6 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.RadioButton radio_autodetect_discard_first;
        
        //RFID
-       [Widget] Gtk.Box hbox_rfid;
        [Widget] Gtk.Label label_rfid;
        
        //better raspberry controls
@@ -65,7 +64,6 @@ public partial class ChronoJumpWindow
        private Config.AutodetectPortEnum configAutodetectPort = Config.AutodetectPortEnum.ACTIVE;
 
        private enum linuxTypeEnum { NOTLINUX, LINUX, RASPBERRY, NETWORKS }
-       private linuxTypeEnum linuxType;
        private bool encoderConfigurationDefinedFromFile = false;
        private bool encoderUpdateTreeViewWhileCapturing = true;
                
diff --git a/src/gui/person.cs b/src/gui/person.cs
index c638dc4..e546363 100644
--- a/src/gui/person.cs
+++ b/src/gui/person.cs
@@ -835,8 +835,7 @@ public class PersonAddModifyWindow
        [Widget] Gtk.Image image_zoom;
 
        [Widget] Gtk.Button button_accept;
-       [Widget] Gtk.Button button_cancel;
-       
+
        //used for connect ok gui/chronojump.cs, PersonRecuperate, PersonRecuperateFromOtherSession,this 
class, gui/convertWeight.cs
        public Gtk.Button fakeButtonAccept;
        
@@ -851,7 +850,6 @@ public class PersonAddModifyWindow
        Sport sport;
        string [] sports;
        string [] sportsTranslated;
-       int speciallityID;
        string [] speciallities;
        string [] speciallitiesTranslated;
        //String level;
diff --git a/src/gui/presentation.cs b/src/gui/presentation.cs
index c576334..b01e1a7 100644
--- a/src/gui/presentation.cs
+++ b/src/gui/presentation.cs
@@ -33,14 +33,10 @@ public partial class ChronoJumpWindow
 {
        //presentation
        [Widget] Gtk.Box vbox_presentation;
-       [Widget] Gtk.ScrolledWindow scrolledwindow_presentation;
-       [Widget] Gtk.Button button_presentation_fullscreen;
-       [Widget] Gtk.Button button_presentation_restore_screen;
        [Widget] Gtk.Image image_presentation_logo;
        [Widget] Gtk.Label label_presentation_current;
 
        //static WebKit.WebView presentation;
-       Thread presentationThread;
 
        bool presentationInitialized = false;
 


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