From 0e03d6b801164cf5c855d1ccf87366cabc3a09ee Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Wed, 3 Jul 2024 12:01:52 +1000 Subject: [PATCH] AP_Compass: remove unused set_last_update_usec method --- libraries/AP_Compass/AP_Compass_Backend.cpp | 6 ------ libraries/AP_Compass/AP_Compass_Backend.h | 1 - 2 files changed, 7 deletions(-) diff --git a/libraries/AP_Compass/AP_Compass_Backend.cpp b/libraries/AP_Compass/AP_Compass_Backend.cpp index 5666038c18eaaa..7728dec9b48600 100644 --- a/libraries/AP_Compass/AP_Compass_Backend.cpp +++ b/libraries/AP_Compass/AP_Compass_Backend.cpp @@ -214,12 +214,6 @@ void AP_Compass_Backend::publish_filtered_field(const Vector3f &mag, uint8_t ins state.last_update_usec = AP_HAL::micros(); } -void AP_Compass_Backend::set_last_update_usec(uint32_t last_update, uint8_t instance) -{ - Compass::mag_state &state = _compass._state[Compass::StateIndex(instance)]; - state.last_update_usec = last_update; -} - /* register a new backend with frontend, returning instance which should be used in publish_field() diff --git a/libraries/AP_Compass/AP_Compass_Backend.h b/libraries/AP_Compass/AP_Compass_Backend.h index 79bfe1f66fd7b8..36f52a3fb650d2 100644 --- a/libraries/AP_Compass/AP_Compass_Backend.h +++ b/libraries/AP_Compass/AP_Compass_Backend.h @@ -103,7 +103,6 @@ class AP_Compass_Backend void publish_raw_field(const Vector3f &mag, uint8_t instance); void correct_field(Vector3f &mag, uint8_t i); void publish_filtered_field(const Vector3f &mag, uint8_t instance); - void set_last_update_usec(uint32_t last_update, uint8_t instance); void accumulate_sample(Vector3f &field, uint8_t instance, uint32_t max_samples = 10);