From 5e9ffe30053454ef9d058c7e7d41f55508cb66d7 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 6 Jul 2019 10:58:10 +0200 Subject: [PATCH] Cleanup: remove unused get_screen_dpi() function Signed-off-by: Berthold Stoeger --- core/display.h | 2 -- subsurface-helper.cpp | 9 --------- 2 files changed, 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 -#include -#include #include #include @@ -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() {