From e787922ab077aded02b3a9359dfd2df107f079ab Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Mon, 8 Apr 2019 15:51:24 +0200 Subject: [PATCH] AP_Math: move check_latlng to Location --- libraries/AP_Math/location.cpp | 5 +---- libraries/AP_Math/location.h | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/libraries/AP_Math/location.cpp b/libraries/AP_Math/location.cpp index 993a235f491..760be2b8b1c 100644 --- a/libraries/AP_Math/location.cpp +++ b/libraries/AP_Math/location.cpp @@ -114,7 +114,4 @@ bool check_latlng(int32_t lat, int32_t lng) { return check_lat(lat) && check_lng(lng); } -bool check_latlng(Location loc) -{ - return check_lat(loc.lat) && check_lng(loc.lng); -} + diff --git a/libraries/AP_Math/location.h b/libraries/AP_Math/location.h index 4dd6859d57f..292b3e39520 100644 --- a/libraries/AP_Math/location.h +++ b/libraries/AP_Math/location.h @@ -66,5 +66,3 @@ bool check_lat(int32_t lat); bool check_lng(int32_t lng); bool check_latlng(float lat, float lng); bool check_latlng(int32_t lat, int32_t lng); -bool check_latlng(Location loc); -