ui/map: remove unused variables (#29098)

pull/29099/head
Dean Lee 2 years ago committed by GitHub
parent 97eec45d42
commit 980ba1312f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/ui/qt/maps/map.h
  2. 1
      selfdrive/ui/qt/maps/map_settings.cc
  3. 1
      selfdrive/ui/qt/maps/map_settings.h

@ -49,8 +49,6 @@ private:
void pinchTriggered(QPinchGesture *gesture); void pinchTriggered(QPinchGesture *gesture);
void setError(const QString &err_str); void setError(const QString &err_str);
bool m_sourceAdded = false;
bool loaded_once = false; bool loaded_once = false;
bool allow_open = true; bool allow_open = true;

@ -8,7 +8,6 @@
#include "selfdrive/ui/qt/widgets/scrollview.h" #include "selfdrive/ui/qt/widgets/scrollview.h"
MapSettings::MapSettings(bool closeable, QWidget *parent) : QFrame(parent) { MapSettings::MapSettings(bool closeable, QWidget *parent) : QFrame(parent) {
close_icon = loadPixmap("../assets/icons/close.svg", {100, 100});
setContentsMargins(0, 0, 0, 0); setContentsMargins(0, 0, 0, 0);
auto *frame = new QVBoxLayout(this); auto *frame = new QVBoxLayout(this);

@ -62,7 +62,6 @@ private:
DestinationWidget *home_widget; DestinationWidget *home_widget;
DestinationWidget *work_widget; DestinationWidget *work_widget;
std::vector<DestinationWidget *> widgets; std::vector<DestinationWidget *> widgets;
QPixmap close_icon;
signals: signals:
void closeSettings(); void closeSettings();

Loading…
Cancel
Save