mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-28 08:49:45 -05:00
Remove unused code.
This commit is contained in:
parent
1ed6a2a19d
commit
7f663f7e0c
@ -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";
|
||||
|
@ -39,10 +39,6 @@ FRESULT mount() {
|
||||
return f_mount(&fs, "", 0);
|
||||
}
|
||||
|
||||
FRESULT unmount() {
|
||||
return f_mount(NULL, "", 0);
|
||||
}
|
||||
|
||||
} /* namespace */
|
||||
|
||||
Signal<Status> status_signal;
|
||||
|
Loading…
Reference in New Issue
Block a user