[chronojump] Clean warnings



commit 1e54b33b557b1a37494af8a24d095bcb16fda305
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Dec 20 12:27:11 2021 +0100

    Clean warnings

 src/forceSensorDynamics.cs     | 2 +-
 src/gui/app1/chronojumpLogo.cs | 2 +-
 src/sqlite/forceSensor.cs      | 2 +-
 src/sqlite/personSession.cs    | 1 -
 src/sqlite/runEncoder.cs       | 2 +-
 src/util.cs                    | 2 --
 src/utilMath.cs                | 2 +-
 7 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/src/forceSensorDynamics.cs b/src/forceSensorDynamics.cs
index 12286a89e..e52083b71 100644
--- a/src/forceSensorDynamics.cs
+++ b/src/forceSensorDynamics.cs
@@ -114,7 +114,7 @@ public abstract class ForceSensorDynamics
                int currentSample = 1;
 
                //The firstPhase is treated different
-               bool firstPhase = true;
+               //bool firstPhase = true;
 
                // to find if there is a previous extreme than first one with minDisplacement
                bool searchingFirstExtreme = true;
diff --git a/src/gui/app1/chronojumpLogo.cs b/src/gui/app1/chronojumpLogo.cs
index dfce31a08..ec0cc646a 100644
--- a/src/gui/app1/chronojumpLogo.cs
+++ b/src/gui/app1/chronojumpLogo.cs
@@ -116,7 +116,7 @@ public class ChronojumpLogo
                 //cr.SelectFontFace(font, FontSlant.Normal, FontWeight.Bold); //Courier is so ugly on logo
                cr.SelectFontFace("Helvetica", FontSlant.Normal, FontWeight.Bold);
 
-               bool showVersion = false;
+               //bool showVersion = false;
                if (size <= 80) {
                        //size += 0.6;
                        size = elapsedMs1 / 20.0;
diff --git a/src/sqlite/forceSensor.cs b/src/sqlite/forceSensor.cs
index ac6f31322..e786b836f 100644
--- a/src/sqlite/forceSensor.cs
+++ b/src/sqlite/forceSensor.cs
@@ -330,7 +330,7 @@ class SqliteForceSensor : Sqlite
                                        if(! personSessionExistsInSession)
                                        {
                                                LogB.Information("going to insert personSession");
-                                               PersonSession ps = new PersonSession(unknownPersonID, 
Convert.ToInt32(session.Name), 0, 75,
+                                               new PersonSession(unknownPersonID, 
Convert.ToInt32(session.Name), 0, 75,
                                                                Constants.SportUndefinedID, 
Constants.SpeciallityUndefinedID, Constants.LevelUndefinedID,
                                                                "",             //comments
                                                                Constants.TrochanterToeUndefinedID,
diff --git a/src/sqlite/personSession.cs b/src/sqlite/personSession.cs
index 4c0b4c8a4..209786e57 100644
--- a/src/sqlite/personSession.cs
+++ b/src/sqlite/personSession.cs
@@ -266,7 +266,6 @@ class SqlitePersonSession : Sqlite
 
                string tp = Constants.PersonTable;
                string tps = Constants.PersonSessionTable;
-               string tpsString = "";
 
                string sessionIDString = tps + ".sessionID = " + sessionID + " AND ";
                if(sessionID == -1)
diff --git a/src/sqlite/runEncoder.cs b/src/sqlite/runEncoder.cs
index 5773118c4..167edb768 100644
--- a/src/sqlite/runEncoder.cs
+++ b/src/sqlite/runEncoder.cs
@@ -456,7 +456,7 @@ class SqliteRunEncoderExercise : Sqlite
                        }
                } else {
                        while(reader.Read()) {
-                               int angleDefault = 0;
+                               //int angleDefault = 0;
 
                                ex = new RunEncoderExercise (
                                                Convert.ToInt32(reader[0].ToString()),  //uniqueID
diff --git a/src/util.cs b/src/util.cs
index e1d526f95..857622b70 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -1209,8 +1209,6 @@ public class Util
        //Pre: filename without 0001.png
        public static string GetWebcamPhotoTempFileNamePre()
        {
-               string fileName = Constants.PhotoTemp;
-
                return Path.Combine(Path.GetTempPath(), Constants.PhotoTemp + "-");
        }
 
diff --git a/src/utilMath.cs b/src/utilMath.cs
index 9c527f6d5..ed6bd5a6c 100644
--- a/src/utilMath.cs
+++ b/src/utilMath.cs
@@ -629,7 +629,7 @@ public class InterpolateSignal
                fsp.testCosineCubicInterpolateDo(types.COSINE);
 
                //cubic
-               List<PointF> interpolated_l = fsp.testCosineCubicInterpolateDo(types.CUBIC);
+               fsp.testCosineCubicInterpolateDo(types.CUBIC);
                //fsp.toFile(interpolated_l, types.CUBIC);
        }
 


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