From 28b8877edca55daee297baa235a6824a594a4136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20BOULMIER?= Date: Fri, 17 May 2019 10:51:16 -0400 Subject: [PATCH] cleanup(cmake): remove useless variables (#1767) They also caused a cmake warning when compiling with debug symbols --- cmake/02-opts.cmake | 5 ----- include/settings.hpp.cmake | 5 ----- 2 files changed, 10 deletions(-) diff --git a/cmake/02-opts.cmake b/cmake/02-opts.cmake index 8fa9a863..e4193940 100644 --- a/cmake/02-opts.cmake +++ b/cmake/02-opts.cmake @@ -85,8 +85,3 @@ set(SETTING_PATH_MESSAGING_FIFO "/tmp/polybar_mqueue.%pid%" CACHE STRING "Path to file containing the current temperature") set(SETTING_PATH_TEMPERATURE_INFO "/sys/class/thermal/thermal_zone%zone%/temp" CACHE STRING "Path to file containing the current temperature") - -if(CMAKE_BUILD_TYPE_UPPER MATCHES DEBUG) - set(DEBUG_HINTS_OFFSET_X 0 CACHE INTEGER "Debug hint offset x") - set(DEBUG_HINTS_OFFSET_Y 0 CACHE INTEGER "Debug hint offset y") -endif() diff --git a/include/settings.hpp.cmake b/include/settings.hpp.cmake index 73882477..7a9bb4be 100644 --- a/include/settings.hpp.cmake +++ b/include/settings.hpp.cmake @@ -62,11 +62,6 @@ static const int SINK_PRIORITY_SCREEN{2}; static const int SINK_PRIORITY_TRAY{3}; static const int SINK_PRIORITY_MODULE{4}; -#ifdef DEBUG_HINTS -static const int DEBUG_HINTS_OFFSET_X{@DEBUG_HINTS_OFFSET_X@}; -static const int DEBUG_HINTS_OFFSET_Y{@DEBUG_HINTS_OFFSET_Y@}; -#endif - static constexpr const char* ALSA_SOUNDCARD{"@SETTING_ALSA_SOUNDCARD@"}; static constexpr const char* BSPWM_SOCKET_PATH{"@SETTING_BSPWM_SOCKET_PATH@"}; static constexpr const char* BSPWM_STATUS_PREFIX{"@SETTING_BSPWM_STATUS_PREFIX@"};