Skip to content

Commit

Permalink
AP_Logger: remove unused _log_file_size_bytes variable
Browse files Browse the repository at this point in the history
AP_Logger: comment corection
  • Loading branch information
peterbarker committed Jul 5, 2024
1 parent 0e41240 commit c1c3580
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions libraries/AP_Logger/AP_Logger_Backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ void AP_Logger_Backend::start_new_log_reset_variables()
_dropped = 0;
_startup_messagewriter->reset();
_front.backend_starting_new_log(this);
_log_file_size_bytes = 0;
_formats_written.clearall();
}

Expand Down Expand Up @@ -709,7 +708,6 @@ void AP_Logger_Backend::df_stats_gather(const uint16_t bytes_written, uint32_t s
}
stats.buf_space_sigma += space_remaining;
stats.bytes += bytes_written;
_log_file_size_bytes += bytes_written;
stats.blocks++;
}

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_Logger/AP_Logger_Backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ class AP_Logger_Backend
uint16_t _cached_oldest_log;

uint32_t _dropped;
uint32_t _log_file_size_bytes;
// should we rotate when we next stop logging
bool _rotate_pending;

Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Logger/AP_Logger_Block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ void AP_Logger_Block::stop_logging_async(void)
void AP_Logger_Block::start_new_log(void)
{
if (erase_started) {
// already erasing
// currently erasing
return;
}

Expand Down

0 comments on commit c1c3580

Please sign in to comment.