Remove unused variables.

This commit is contained in:
Jared Boone 2016-01-23 17:53:33 -08:00
parent 14f18d5cf7
commit e4f5539407
3 changed files with 1 additions and 4 deletions

View File

@ -265,8 +265,6 @@ Rect AISRecentEntryDetailView::draw_field(
const int label_length_max = 4;
painter.draw_string(Point { draw_rect.left(), draw_rect.top() }, style, label);
const auto length = value.length();
painter.draw_string(Point { draw_rect.left() + (label_length_max + 1) * 8, draw_rect.top() }, style, value);
return { draw_rect.left(), draw_rect.top() + draw_rect.height(), draw_rect.width(), draw_rect.height() };

View File

@ -243,7 +243,7 @@ void TPMSAppView::on_packet(const tpms::Packet& packet) {
const auto reading_opt = packet.reading();
if( reading_opt.is_valid() ) {
const auto reading = reading_opt.value();
const auto updated_entry = recent.on_packet({ reading.type(), reading.id() }, reading);
recent.on_packet({ reading.type(), reading.id() }, reading);
recent_entries_view.set_dirty();
}
}

View File

@ -67,7 +67,6 @@ void TemperatureWidget::paint(Painter& painter) {
const Color color_foreground = Color::green();
const Color color_reticle { 128, 128, 128 };
const Dim graph_height = rect.height() - 16;
const auto graph_width = static_cast<int>(logger.capacity()) * bar_width;
const Rect graph_rect {
rect.left() + (rect.width() - graph_width) / 2, rect.top() + 8,