From c664442a479114aec41905a59b945a89006cadd3 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 28 Apr 2024 10:27:22 +0100 Subject: [PATCH] refactor: Remove unused `#include ` CMake allows to incorporate compile defines into a target as its property with applying automatically where required. --- src/crypto/sha256.cpp | 4 ---- src/httpserver.cpp | 4 ---- src/qt/notificator.cpp | 4 ---- src/qt/notificator.h | 4 ---- src/qt/qrimagewidget.cpp | 4 ---- src/qt/receiverequestdialog.cpp | 4 ---- src/test/util_threadnames_tests.cpp | 4 ---- 7 files changed, 28 deletions(-) diff --git a/src/crypto/sha256.cpp b/src/crypto/sha256.cpp index 301f22a248885..f744d73556b12 100644 --- a/src/crypto/sha256.cpp +++ b/src/crypto/sha256.cpp @@ -2,10 +2,6 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#if defined(HAVE_CONFIG_H) -#include -#endif - #include #include diff --git a/src/httpserver.cpp b/src/httpserver.cpp index 71134d442fe84..7843b183db923 100644 --- a/src/httpserver.cpp +++ b/src/httpserver.cpp @@ -2,10 +2,6 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#if defined(HAVE_CONFIG_H) -#include -#endif - #include #include diff --git a/src/qt/notificator.cpp b/src/qt/notificator.cpp index 2021e5f9dc552..88bc33098a3fc 100644 --- a/src/qt/notificator.cpp +++ b/src/qt/notificator.cpp @@ -2,10 +2,6 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#if defined(HAVE_CONFIG_H) -#include -#endif - #include #include diff --git a/src/qt/notificator.h b/src/qt/notificator.h index 1fd8181a22684..f72a859f89af4 100644 --- a/src/qt/notificator.h +++ b/src/qt/notificator.h @@ -5,10 +5,6 @@ #ifndef BITCOIN_QT_NOTIFICATOR_H #define BITCOIN_QT_NOTIFICATOR_H -#if defined(HAVE_CONFIG_H) -#include -#endif - #include #include diff --git a/src/qt/qrimagewidget.cpp b/src/qt/qrimagewidget.cpp index 00f928b355796..9aa2db9cd97c3 100644 --- a/src/qt/qrimagewidget.cpp +++ b/src/qt/qrimagewidget.cpp @@ -15,10 +15,6 @@ #include #include -#if defined(HAVE_CONFIG_H) -#include /* for USE_QRCODE */ -#endif - #ifdef USE_QRCODE #include #endif diff --git a/src/qt/receiverequestdialog.cpp b/src/qt/receiverequestdialog.cpp index 3453857f9854e..a3528d7e0069e 100644 --- a/src/qt/receiverequestdialog.cpp +++ b/src/qt/receiverequestdialog.cpp @@ -14,10 +14,6 @@ #include #include -#if defined(HAVE_CONFIG_H) -#include /* for USE_QRCODE */ -#endif - ReceiveRequestDialog::ReceiveRequestDialog(QWidget* parent) : QDialog(parent, GUIUtil::dialog_flags), ui(new Ui::ReceiveRequestDialog) diff --git a/src/test/util_threadnames_tests.cpp b/src/test/util_threadnames_tests.cpp index 45d3a58fd3ce1..536121d9a61c7 100644 --- a/src/test/util_threadnames_tests.cpp +++ b/src/test/util_threadnames_tests.cpp @@ -11,10 +11,6 @@ #include #include -#if defined(HAVE_CONFIG_H) -#include -#endif - #include BOOST_AUTO_TEST_SUITE(util_threadnames_tests)