diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-07-06 10:58:10 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-07-06 04:10:14 -0700 |
commit | 5e9ffe30053454ef9d058c7e7d41f55508cb66d7 (patch) | |
tree | fb4a83bfd2663a5b8b6d9241a8ed5f402c4b6f9c | |
parent | 675288f7111ea6b8016d0e10aa514f2226008b4f (diff) | |
download | subsurface-5e9ffe30053454ef9d058c7e7d41f55508cb66d7.tar.gz |
Cleanup: remove unused get_screen_dpi() function
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | core/display.h | 2 | ||||
-rw-r--r-- | subsurface-helper.cpp | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/core/display.h b/core/display.h index aad3c74e1..6b773a496 100644 --- a/core/display.h +++ b/core/display.h @@ -8,8 +8,6 @@ extern "C" { #endif -extern double get_screen_dpi(void); - /* Plot info with smoothing, velocity indication * and one-, two- and three-minute minimums and maximums */ struct plot_info { diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp index 291a3e3bf..4d7774953 100644 --- a/subsurface-helper.cpp +++ b/subsurface-helper.cpp @@ -1,7 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 #include <QQmlEngine> -#include <QDesktopWidget> -#include <QApplication> #include <QDebug> #include <QQuickItem> @@ -55,13 +53,6 @@ void exit_ui() free((void *)existing_filename); } -double get_screen_dpi() -{ - QDesktopWidget *mydesk = qApp->desktop(); - return mydesk->physicalDpiX(); -} - - void run_ui() { |