From aab91033561e55d1c18999aa50c722c4c4a1e702 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 13 Dec 2018 12:02:24 +1100 Subject: [PATCH] Sub: GCS_MAVLink now uses Mission singleton --- ArduSub/GCS_Mavlink.cpp | 5 ----- ArduSub/GCS_Mavlink.h | 1 - 2 files changed, 6 deletions(-) diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index 566017c359..ac6d5cd065 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -1162,11 +1162,6 @@ void Sub::mavlink_delay_cb() DataFlash.EnableWrites(true); } -AP_Mission *GCS_MAVLINK_Sub::get_mission() -{ - return &sub.mission; -} - AP_Rally *GCS_MAVLINK_Sub::get_rally() const { #if AC_RALLY == ENABLED diff --git a/ArduSub/GCS_Mavlink.h b/ArduSub/GCS_Mavlink.h index 5b0dfed0e0..daf29bd834 100644 --- a/ArduSub/GCS_Mavlink.h +++ b/ArduSub/GCS_Mavlink.h @@ -12,7 +12,6 @@ protected: return 0; }; - AP_Mission *get_mission() override; AP_Rally *get_rally() const override; MAV_RESULT handle_flight_termination(const mavlink_command_long_t &packet) override;