mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Remove unused variables.
This commit is contained in:
parent
14f18d5cf7
commit
e4f5539407
@ -265,8 +265,6 @@ Rect AISRecentEntryDetailView::draw_field(
|
|||||||
const int label_length_max = 4;
|
const int label_length_max = 4;
|
||||||
|
|
||||||
painter.draw_string(Point { draw_rect.left(), draw_rect.top() }, style, label);
|
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);
|
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() };
|
return { draw_rect.left(), draw_rect.top() + draw_rect.height(), draw_rect.width(), draw_rect.height() };
|
||||||
|
@ -243,7 +243,7 @@ void TPMSAppView::on_packet(const tpms::Packet& packet) {
|
|||||||
const auto reading_opt = packet.reading();
|
const auto reading_opt = packet.reading();
|
||||||
if( reading_opt.is_valid() ) {
|
if( reading_opt.is_valid() ) {
|
||||||
const auto reading = reading_opt.value();
|
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();
|
recent_entries_view.set_dirty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,6 @@ void TemperatureWidget::paint(Painter& painter) {
|
|||||||
const Color color_foreground = Color::green();
|
const Color color_foreground = Color::green();
|
||||||
const Color color_reticle { 128, 128, 128 };
|
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 auto graph_width = static_cast<int>(logger.capacity()) * bar_width;
|
||||||
const Rect graph_rect {
|
const Rect graph_rect {
|
||||||
rect.left() + (rect.width() - graph_width) / 2, rect.top() + 8,
|
rect.left() + (rect.width() - graph_width) / 2, rect.top() + 8,
|
||||||
|
Loading…
Reference in New Issue
Block a user