[chronojump] Fixes warnings: avoids a few more variables that were declared and not used.



commit ddc2251309ee27fc7e5a3c19d86e66d9aab25b5a
Author: Carles Pina i Estany <carles pina cat>
Date:   Sun Oct 16 20:08:29 2016 +0200

    Fixes warnings: avoids a few more variables that were declared and not used.

 src/execute/run.cs |    3 ++-
 src/utilEncoder.cs |    2 --
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/execute/run.cs b/src/execute/run.cs
index af83112..706fa8a 100644
--- a/src/execute/run.cs
+++ b/src/execute/run.cs
@@ -614,7 +614,8 @@ public class RunIntervalExecute : RunExecute
                                                                        else if(checkDoubleContactMode == 
                                                                                        
Constants.DoubleContact.LAST) {
                                                                                //user want last flight time, 
take that
-                                                                               timestamp = timestamp;
+                                                                               // so we don't need to change 
timestamp. Or we could do (it triggers a warning):
+                                                                               // timestamp = timestamp;
                                                                        }
                                                                        else {  /* do the avg of all flights 
and contacts
                                                                                   then add to last timestamp 
*/
diff --git a/src/utilEncoder.cs b/src/utilEncoder.cs
index 9cca602..70db816 100644
--- a/src/utilEncoder.cs
+++ b/src/utilEncoder.cs
@@ -372,7 +372,6 @@ public class UtilEncoder
 
                string inputData = GetEncoderDataTempFileName();
                string outputData = GetEncoderSpecialDataTempFileName();
-               string operatingSystem = "Linux";
                
                string scriptUtilR = GetEncoderScriptUtilR();
 
@@ -387,7 +386,6 @@ public class UtilEncoder
                        //a file path uses Unix-like path separator '/'         
                        inputData = inputData.Replace("\\","/");
                        scriptUtilR = scriptUtilR.Replace("\\","/");
-                       operatingSystem = "Windows";
                }
                
                //--- way A. passing options to a file


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