[chronojump] Clean warnings



commit 858732db3372a1fcbc7b8393318b7197bf42a50e
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Dec 15 15:58:03 2021 +0100

    Clean warnings

 src/forceSensor.cs              | 3 ---
 src/gui/dialogShortcuts.cs      | 2 ++
 src/gui/repetitiveConditions.cs | 4 ----
 src/runEncoder.cs               | 2 +-
 src/sqlite/usefulObjects.cs     | 2 --
 5 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/forceSensor.cs b/src/forceSensor.cs
index 4cadfb546..e18792fdb 100644
--- a/src/forceSensor.cs
+++ b/src/forceSensor.cs
@@ -2832,14 +2832,11 @@ public class PathAccuracy
        public int CountIn;
        public int CountOut;
 
-       private int accuracy;
-
        //constructor
        public PathAccuracy ()
        {
                CountIn = 0;
                CountOut = 0;
-               accuracy = 0;
        }
 
        public double Accuracy
diff --git a/src/gui/dialogShortcuts.cs b/src/gui/dialogShortcuts.cs
index 3cdce31b9..ebf50a0e4 100644
--- a/src/gui/dialogShortcuts.cs
+++ b/src/gui/dialogShortcuts.cs
@@ -26,6 +26,7 @@ using Glade;
 public class DialogShortcuts
 {
        [Widget] Gtk.Dialog dialog_shortcuts;
+       /*
        [Widget] Gtk.Label label_ctrl;
        [Widget] Gtk.Label label_ctrl1;
        [Widget] Gtk.Label label_ctrl2;
@@ -33,6 +34,7 @@ public class DialogShortcuts
        [Widget] Gtk.Label label_ctrl4;
        [Widget] Gtk.Label label_ctrl5;
        [Widget] Gtk.Label label_enter;
+       */
        [Widget] Gtk.Image image_button_close;
 
        //images on capture tab
diff --git a/src/gui/repetitiveConditions.cs b/src/gui/repetitiveConditions.cs
index e380f488b..9849d4b29 100644
--- a/src/gui/repetitiveConditions.cs
+++ b/src/gui/repetitiveConditions.cs
@@ -115,10 +115,6 @@ public class RepetitiveConditionsWindow
        [Widget] Gtk.SpinButton spinbutton_encoder_peakpower_higher;
        [Widget] Gtk.SpinButton spinbutton_encoder_power_lower;
        [Widget] Gtk.SpinButton spinbutton_encoder_peakpower_lower;
-       [Widget] Gtk.Button button_encoder_automatic_greater_minus_1;
-       [Widget] Gtk.Button button_encoder_automatic_greater_plus_1;
-       [Widget] Gtk.Button button_encoder_automatic_lower_minus_1;
-       [Widget] Gtk.Button button_encoder_automatic_lower_plus_1;
 
 
        [Widget] Gtk.Button button_test_good;
diff --git a/src/runEncoder.cs b/src/runEncoder.cs
index fe727a026..e3a1d5491 100644
--- a/src/runEncoder.cs
+++ b/src/runEncoder.cs
@@ -35,7 +35,7 @@ public class RunEncoder
        private int personID;
        private int sessionID;
        private int exerciseID; //until runEncoderExercise table is not created, all will be 0
-       private int angle;
+       //private int angle; //unused
        private Devices device;
        private int distance;
        private int temperature;
diff --git a/src/sqlite/usefulObjects.cs b/src/sqlite/usefulObjects.cs
index a7a8437f1..6868e0ee3 100644
--- a/src/sqlite/usefulObjects.cs
+++ b/src/sqlite/usefulObjects.cs
@@ -30,7 +30,6 @@ public class LSqlEnTrans
        private List<string> l_sql;
        private int sqlDefault;
        private int sqlCurrent;
-       private List<string> l_en;
        private List<string> l_trans;
 
        public LSqlEnTrans (string name, List<string> l_sql, int sqlDefault, int sqlCurrent, List<string> 
l_en)
@@ -39,7 +38,6 @@ public class LSqlEnTrans
                this.l_sql = l_sql;
                this.sqlDefault = sqlDefault;
                this.sqlCurrent = sqlCurrent;
-               this.l_en = l_en;
 
                l_trans = new List<string>();
                foreach(string s in l_en)


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