From 7f663f7e0c4fa3c621035ebc14383bf7810fa3d6 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 22 Feb 2016 14:18:20 -0800 Subject: [PATCH] Remove unused code. --- firmware/application/ais_app.cpp | 31 ------------------------------- firmware/application/sd_card.cpp | 4 ---- 2 files changed, 35 deletions(-) diff --git a/firmware/application/ais_app.cpp b/firmware/application/ais_app.cpp index 95c7bd7d..7fde92a4 100644 --- a/firmware/application/ais_app.cpp +++ b/firmware/application/ais_app.cpp @@ -41,26 +41,6 @@ static std::string latlon_abs_normalized(const int32_t normalized, const char su return to_string_dec_uint(degrees) + "." + to_string_dec_uint(fraction, 6, '0') + suffix; } -static std::string latitude(const Latitude value) { - if( value.is_not_available() ) { - return "not available"; - } else if( value.is_valid() ) { - return latlon_abs_normalized(value.normalized(), "SN"); - } else { - return "invalid"; - } -} - -static std::string longitude(const Longitude value) { - if( value.is_not_available() ) { - return "not available"; - } else if( value.is_valid() ) { - return latlon_abs_normalized(value.normalized(), "WE"); - } else { - return "invalid"; - } -} - static std::string latlon(const Latitude latitude, const Longitude longitude) { if( latitude.is_valid() && longitude.is_valid() ) { return latlon_abs_normalized(latitude.normalized(), "SN") + " " + latlon_abs_normalized(longitude.normalized(), "WE"); @@ -77,17 +57,6 @@ static std::string mmsi( return to_string_dec_uint(mmsi, 9); } -static std::string datetime( - const ais::DateTime& datetime -) { - return to_string_dec_uint(datetime.year, 4, '0') + "/" + - to_string_dec_uint(datetime.month, 2, '0') + "/" + - to_string_dec_uint(datetime.day, 2, '0') + " " + - to_string_dec_uint(datetime.hour, 2, '0') + ":" + - to_string_dec_uint(datetime.minute, 2, '0') + ":" + - to_string_dec_uint(datetime.second, 2, '0'); -} - static std::string navigational_status(const unsigned int value) { switch(value) { case 0: return "under way w/engine"; diff --git a/firmware/application/sd_card.cpp b/firmware/application/sd_card.cpp index 78f8e287..cef4be93 100644 --- a/firmware/application/sd_card.cpp +++ b/firmware/application/sd_card.cpp @@ -39,10 +39,6 @@ FRESULT mount() { return f_mount(&fs, "", 0); } -FRESULT unmount() { - return f_mount(NULL, "", 0); -} - } /* namespace */ Signal status_signal;