diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 47e9562174..5f924f78cd 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -1362,27 +1362,6 @@ bool AP_Arming::arm(AP_Arming::Method method, const bool do_arming_checks) armed = false; } -#if HAL_LOGGER_FILE_CONTENTS_ENABLED - /* - log files useful for diagnostics on arming. We log on arming as - with LOG_DISARMED we don't want to log the statistics at boot or - we wouldn't get a realistic idea of key system values - Note that some of these files may not exist, in that case they - are ignored - */ - static const char *log_content_filenames[] = { - "@SYS/uarts.txt", - "@SYS/dma.txt", - "@SYS/memory.txt", - "@SYS/threads.txt", - "@ROMFS/hwdef.dat", - "@SYS/storage.bin", - "@SYS/crash_dump.bin", - }; - for (const auto *name : log_content_filenames) { - AP::logger().log_file_content(name); - } -#endif return armed; }