From d6c682a923c55360b7ffbeaef01d14e7dcef0daf Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sun, 1 Dec 2024 18:33:51 -0500 Subject: [PATCH] chore: rm unused src/lib/gui/gui_config.h --- cmake/Build.cmake | 3 --- src/gui/src/dialogs/SettingsDialog.cpp | 1 - src/gui/src/main.cpp | 1 - src/lib/gui/gui_config.h.in | 26 -------------------------- 4 files changed, 31 deletions(-) delete mode 100644 src/lib/gui/gui_config.h.in diff --git a/cmake/Build.cmake b/cmake/Build.cmake index fb956fa22..b705554d5 100644 --- a/cmake/Build.cmake +++ b/cmake/Build.cmake @@ -16,9 +16,6 @@ macro(configure_build) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin") set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib") - - configure_file(${PROJECT_SOURCE_DIR}/src/lib/gui/gui_config.h.in - ${PROJECT_BINARY_DIR}/config/gui_config.h) endmacro() macro(post_config) diff --git a/src/gui/src/dialogs/SettingsDialog.cpp b/src/gui/src/dialogs/SettingsDialog.cpp index c3bf55894..8dc5ec0df 100644 --- a/src/gui/src/dialogs/SettingsDialog.cpp +++ b/src/gui/src/dialogs/SettingsDialog.cpp @@ -25,7 +25,6 @@ #include "gui/tls/TlsUtility.h" #include "gui/validators/ScreenNameValidator.h" #include "gui/validators/ValidationError.h" -#include "gui_config.h" // IWYU pragma: keep #ifdef DESKFLOW_GUI_HOOK_HEADER #include DESKFLOW_GUI_HOOK_HEADER diff --git a/src/gui/src/main.cpp b/src/gui/src/main.cpp index d89ade836..e28a6e3ad 100644 --- a/src/gui/src/main.cpp +++ b/src/gui/src/main.cpp @@ -27,7 +27,6 @@ #include "gui/dotenv.h" #include "gui/messages.h" #include "gui/string_utils.h" -#include "gui_config.h" // IWYU pragma: keep #ifdef DESKFLOW_GUI_HOOK_HEADER #include DESKFLOW_GUI_HOOK_HEADER diff --git a/src/lib/gui/gui_config.h.in b/src/lib/gui/gui_config.h.in deleted file mode 100644 index 08c8bcd09..000000000 --- a/src/lib/gui/gui_config.h.in +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Deskflow -- mouse and keyboard sharing utility - * Copyright (C) 2024 Symless Ltd. - * - * This package is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * found in the file LICENSE that should have accompanied this file. - * - * This package is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#pragma once - -// clang-format off - -#cmakedefine DESKFLOW_GUI_HOOK_HEADER "${DESKFLOW_GUI_HOOK_HEADER}" -#cmakedefine DESKFLOW_GUI_HOOK_START ${DESKFLOW_GUI_HOOK_START} -#cmakedefine DESKFLOW_GUI_HOOK_SETTINGS ${DESKFLOW_GUI_HOOK_SETTINGS} - -// clang-format on