From 1fbcd362e60ee378f74417016ae8b9e44eccf661 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 21 Nov 2023 20:40:54 +0100 Subject: [PATCH] chore: Remove superfluous #includes --- src/Config.cpp | 2 -- src/ProgressBar.cpp | 4 +--- src/ccache.cpp | 2 -- src/compopt.cpp | 2 -- src/storage/local/LocalStorage.cpp | 2 -- src/util/LockFile.cpp | 2 -- src/util/Tokenizer.hpp | 4 +--- src/util/assertions.cpp | 2 -- unittest/main.cpp | 2 -- unittest/test_Config.cpp | 1 - 10 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/Config.cpp b/src/Config.cpp index 064e09822..042e856fb 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -38,8 +38,6 @@ #include #include -#include "third_party/fmt/core.h" - #include #ifdef HAVE_PWD_H diff --git a/src/ProgressBar.cpp b/src/ProgressBar.cpp index da0ee2530..c616d6d94 100644 --- a/src/ProgressBar.cpp +++ b/src/ProgressBar.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2022 Joel Rosdahl and other contributors +// Copyright (C) 2019-2023 Joel Rosdahl and other contributors // // See doc/AUTHORS.adoc for a complete list of contributors. // @@ -22,8 +22,6 @@ #include #include -#include "third_party/fmt/core.h" - #ifdef _WIN32 #else # include diff --git a/src/ccache.cpp b/src/ccache.cpp index 3a59aaf21..cc4449239 100644 --- a/src/ccache.cpp +++ b/src/ccache.cpp @@ -62,8 +62,6 @@ #include #include -#include "third_party/fmt/core.h" - #include #include diff --git a/src/compopt.cpp b/src/compopt.cpp index 1cceb8cb6..d9ba6bd8f 100644 --- a/src/compopt.cpp +++ b/src/compopt.cpp @@ -20,8 +20,6 @@ #include -#include "third_party/fmt/core.h" - // The option it too hard to handle at all. #define TOO_HARD (1 << 0) diff --git a/src/storage/local/LocalStorage.cpp b/src/storage/local/LocalStorage.cpp index 2fdbfec61..142820747 100644 --- a/src/storage/local/LocalStorage.cpp +++ b/src/storage/local/LocalStorage.cpp @@ -48,8 +48,6 @@ # include #endif -#include - #include #ifdef HAVE_UNISTD_H # include diff --git a/src/util/LockFile.cpp b/src/util/LockFile.cpp index cdf9632e6..c57f265be 100644 --- a/src/util/LockFile.cpp +++ b/src/util/LockFile.cpp @@ -30,8 +30,6 @@ #include #include -#include "third_party/fmt/core.h" - #ifdef HAVE_UNISTD_H # include #endif diff --git a/src/util/Tokenizer.hpp b/src/util/Tokenizer.hpp index 3cf1748d3..247babaa4 100644 --- a/src/util/Tokenizer.hpp +++ b/src/util/Tokenizer.hpp @@ -1,4 +1,4 @@ -// Copyright (C) 2021-2022 Joel Rosdahl and other contributors +// Copyright (C) 2021-2023 Joel Rosdahl and other contributors // // See doc/AUTHORS.adoc for a complete list of contributors. // @@ -20,8 +20,6 @@ #include -#include - #include namespace util { diff --git a/src/util/assertions.cpp b/src/util/assertions.cpp index a84cb59b5..dd32cc527 100644 --- a/src/util/assertions.cpp +++ b/src/util/assertions.cpp @@ -21,8 +21,6 @@ #include #include -#include "third_party/fmt/core.h" - namespace util { void diff --git a/unittest/main.cpp b/unittest/main.cpp index 034fd5ec2..5e64c958b 100644 --- a/unittest/main.cpp +++ b/unittest/main.cpp @@ -21,8 +21,6 @@ #include #include -#include "third_party/fmt/core.h" - #define DOCTEST_THREAD_LOCAL // Avoid MinGW thread_local bug #define DOCTEST_CONFIG_IMPLEMENT #include "third_party/doctest.h" diff --git a/unittest/test_Config.cpp b/unittest/test_Config.cpp index 683e8c447..6c71c8187 100644 --- a/unittest/test_Config.cpp +++ b/unittest/test_Config.cpp @@ -26,7 +26,6 @@ #include #include "third_party/doctest.h" -#include "third_party/fmt/core.h" #include #include -- 2.47.2