[hamradio-commits] [gnss-sdr] 101/303: Remove dead code

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Mon Feb 13 22:35:52 UTC 2017


This is an automated email from the git hooks/post-receive script.

carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.

commit 664d6ecfa80d937ba720913bd89652f1e57e4198
Author: Carles Fernandez <carlesfernandez at gmail.com>
Date:   Thu Oct 13 10:06:53 2016 +0200

    Remove dead code
---
 src/tests/system-tests/ttff_gps_l1.cc | 67 ++++++++++++++++-------------------
 1 file changed, 30 insertions(+), 37 deletions(-)

diff --git a/src/tests/system-tests/ttff_gps_l1.cc b/src/tests/system-tests/ttff_gps_l1.cc
index cee7974..eaf3e94 100644
--- a/src/tests/system-tests/ttff_gps_l1.cc
+++ b/src/tests/system-tests/ttff_gps_l1.cc
@@ -302,55 +302,48 @@ void TTFF_GPS_L1_CA_Test::print_TTFF_report(const std::vector<double> & ttff_v,
     std::ofstream ttff_report_file;
     std::string filename = "ttff_report";
     std::string filename_;
-    bool time_tag_name = true;
 
     time_t rawtime;
     struct tm * timeinfo;
     time ( &rawtime );
     timeinfo = localtime ( &rawtime );
 
-    if (time_tag_name)
+    std::stringstream strm0;
+    const int year = timeinfo->tm_year - 100;
+    strm0 << year;
+    const int month = timeinfo->tm_mon + 1;
+    if(month < 10)
         {
-            std::stringstream strm0;
-            const int year = timeinfo->tm_year - 100;
-            strm0 << year;
-            const int month = timeinfo->tm_mon + 1;
-            if(month < 10)
-                {
-                    strm0 << "0";
-                }
-            strm0 << month;
-            const int day = timeinfo->tm_mday;
-            if(day < 10)
-                {
-                    strm0 << "0";
-                }
-            strm0 << day << "_";
-            const int hour = timeinfo->tm_hour;
-            if(hour < 10)
-                {
-                    strm0 << "0";
-                }
-            strm0 << hour;
-            const int min = timeinfo->tm_min;
-            if(min < 10)
-                {
-                    strm0 << "0";
-                }
-            strm0 << min;
-            const int sec = timeinfo->tm_sec;
-            if(sec < 10)
+            strm0 << "0";
+        }
+    strm0 << month;
+    const int day = timeinfo->tm_mday;
+    if(day < 10)
+        {
+            strm0 << "0";
+        }
+    strm0 << day << "_";
+    const int hour = timeinfo->tm_hour;
+    if(hour < 10)
                 {
-                    strm0 << "0";
-                }
-            strm0 << sec;
+            strm0 << "0";
+        }
+    strm0 << hour;
+    const int min = timeinfo->tm_min;
 
-            filename_ = filename + "_" +  strm0.str() + ".txt";
+    if(min < 10)
+        {
+            strm0 << "0";
         }
-    else
+    strm0 << min;
+    const int sec = timeinfo->tm_sec;
+    if(sec < 10)
         {
-            filename_ = filename + ".txt";
+            strm0 << "0";
         }
+    strm0 << sec;
+
+    filename_ = filename + "_" +  strm0.str() + ".txt";
 
     ttff_report_file.open(filename_.c_str());
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git



More information about the pkg-hamradio-commits mailing list