Remove unused lambda captures.

This commit is contained in:
Jared Boone 2015-12-10 15:27:33 -08:00
parent e8cf0b8de7
commit 2808efac4c
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ void BasebandProcessor::post_channel_spectrum_message(const buffer_c16_t& data)
void BasebandProcessor::feed_audio_stats(const buffer_s16_t& audio) {
audio_stats.feed(
audio,
[this](const AudioStatistics& statistics) {
[](const AudioStatistics& statistics) {
const AudioStatisticsMessage audio_stats_message { statistics };
shared_memory.application_queue.push(audio_stats_message);
}

View File

@ -365,7 +365,7 @@ int main(void) {
auto& message_handlers = event_dispatcher.message_handlers();
message_handlers.register_handler(Message::ID::BasebandConfiguration,
[&message_handlers](const Message* const p) {
[](const Message* const p) {
auto message = reinterpret_cast<const BasebandConfigurationMessage*>(p);
baseband_thread.set_configuration(message->configuration);
}