From 8d2a08723a879c3fc742469b2cc9ad359928c938 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Sun, 23 Jul 2023 03:24:16 +0800 Subject: [PATCH] ui/map: remove unused variables (#29098) old-commit-hash: 980ba1312fc587b735c71887251e16dd20f6cec3 --- selfdrive/ui/qt/maps/map.h | 2 -- selfdrive/ui/qt/maps/map_settings.cc | 1 - selfdrive/ui/qt/maps/map_settings.h | 1 - 3 files changed, 4 deletions(-) diff --git a/selfdrive/ui/qt/maps/map.h b/selfdrive/ui/qt/maps/map.h index 83b0118f96..e419a9e5c0 100644 --- a/selfdrive/ui/qt/maps/map.h +++ b/selfdrive/ui/qt/maps/map.h @@ -49,8 +49,6 @@ private: void pinchTriggered(QPinchGesture *gesture); void setError(const QString &err_str); - bool m_sourceAdded = false; - bool loaded_once = false; bool allow_open = true; diff --git a/selfdrive/ui/qt/maps/map_settings.cc b/selfdrive/ui/qt/maps/map_settings.cc index 104b9d400d..8229252188 100644 --- a/selfdrive/ui/qt/maps/map_settings.cc +++ b/selfdrive/ui/qt/maps/map_settings.cc @@ -8,7 +8,6 @@ #include "selfdrive/ui/qt/widgets/scrollview.h" MapSettings::MapSettings(bool closeable, QWidget *parent) : QFrame(parent) { - close_icon = loadPixmap("../assets/icons/close.svg", {100, 100}); setContentsMargins(0, 0, 0, 0); auto *frame = new QVBoxLayout(this); diff --git a/selfdrive/ui/qt/maps/map_settings.h b/selfdrive/ui/qt/maps/map_settings.h index 5cb90a23a8..1bef04ac5d 100644 --- a/selfdrive/ui/qt/maps/map_settings.h +++ b/selfdrive/ui/qt/maps/map_settings.h @@ -62,7 +62,6 @@ private: DestinationWidget *home_widget; DestinationWidget *work_widget; std::vector widgets; - QPixmap close_icon; signals: void closeSettings();