From 34444aedb24bcd00020224ea8d041b8157ceb27a Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Tue, 26 Apr 2016 12:48:38 +0200 Subject: [PATCH] Dead code removed --- radio/src/maths.cpp | 12 ------------ radio/src/opentx.h | 3 --- 2 files changed, 15 deletions(-) diff --git a/radio/src/maths.cpp b/radio/src/maths.cpp index 118db0454..3be1fc558 100644 --- a/radio/src/maths.cpp +++ b/radio/src/maths.cpp @@ -128,18 +128,6 @@ uint16_t isqrt32(uint32_t n) -204 -> -20 */ -#if defined(PCBTARANIS) -double gpsToDouble(bool neg, int16_t bp, int16_t ap) -{ - double result = ap; - result /= 10000; - result += (bp % 100); - result /= 60; - result += (bp / 100); - return neg?-result:result; -} -#endif - #if defined(FRSKY_HUB) && !defined(CPUARM) void extractLatitudeLongitude(uint32_t * latitude, uint32_t * longitude) { diff --git a/radio/src/opentx.h b/radio/src/opentx.h index f3c656de1..2b160488a 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -1674,9 +1674,6 @@ extern uint8_t s_frsky_view; #define EARTH_RADIUSKM ((uint32_t)6371) #define EARTH_RADIUS ((uint32_t)111194) -#if defined(PCBTARANIS) || defined(PCBFLAMENCO) || defined(PCBHORUS) -double gpsToDouble(bool neg, int16_t bp, int16_t ap); -#endif void getGpsPilotPosition(); void getGpsDistance(); void varioWakeup();