From 9396f77fe4b007d4803ff2248a0926f2ced46951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ka=C4=9Fan=20Can=20=C5=9Eit?= Date: Mon, 6 Apr 2026 04:40:48 +0300 Subject: [PATCH] Remove unused header includes in test files (#4729) --- test/chrono-test.cc | 1 - test/format-impl-test.cc | 1 - test/format-test.cc | 21 ++++++++++----------- test/gtest-extra-test.cc | 1 - test/os-test.cc | 1 - test/printf-test.cc | 1 - test/ranges-test.cc | 1 - test/scan-test.cc | 2 -- test/xchar-test.cc | 2 -- 9 files changed, 10 insertions(+), 21 deletions(-) diff --git a/test/chrono-test.cc b/test/chrono-test.cc index 98b37000..4dee7c47 100644 --- a/test/chrono-test.cc +++ b/test/chrono-test.cc @@ -7,7 +7,6 @@ #include "fmt/chrono.h" -#include #include #include diff --git a/test/format-impl-test.cc b/test/format-impl-test.cc index 0d906c4e..4259add3 100644 --- a/test/format-impl-test.cc +++ b/test/format-impl-test.cc @@ -5,7 +5,6 @@ // // For the license information refer to format.h. -#include #include // clang-format off diff --git a/test/format-test.cc b/test/format-test.cc index f18f3172..cd07c26a 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -15,17 +15,16 @@ #include // uint32_t -#include // fegetexceptflag and FE_ALL_EXCEPT -#include // INT_MAX -#include // std::signbit -#include // std::condition_variable -#include // std::strlen -#include // std::back_inserter -#include // std::list -#include // std::mutex -#include // std::string -#include // std::thread -#include // std::is_default_constructible +#include // fegetexceptflag and FE_ALL_EXCEPT +#include // INT_MAX +#include // std::signbit +#include // std::strlen +#include // std::back_inserter +#include // std::list +#include // std::mutex +#include // std::string +#include // std::thread +#include // std::is_default_constructible #if FMT_CPLUSPLUS > 201703L && FMT_HAS_INCLUDE() # include #endif diff --git a/test/gtest-extra-test.cc b/test/gtest-extra-test.cc index 5c860400..8e4401b8 100644 --- a/test/gtest-extra-test.cc +++ b/test/gtest-extra-test.cc @@ -9,7 +9,6 @@ #include -#include #include #include diff --git a/test/os-test.cc b/test/os-test.cc index e789e87e..5ece0eb7 100644 --- a/test/os-test.cc +++ b/test/os-test.cc @@ -7,7 +7,6 @@ #include "fmt/os.h" -#include // std::exit #include #include #include diff --git a/test/printf-test.cc b/test/printf-test.cc index 1b1f4f57..354143b9 100644 --- a/test/printf-test.cc +++ b/test/printf-test.cc @@ -9,7 +9,6 @@ #include #include -#include #include "fmt/xchar.h" // DEPRECATED! #include "gtest-extra.h" diff --git a/test/ranges-test.cc b/test/ranges-test.cc index 0c2d771d..bd161d75 100644 --- a/test/ranges-test.cc +++ b/test/ranges-test.cc @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include diff --git a/test/scan-test.cc b/test/scan-test.cc index d4f9e413..e0b7e2bc 100644 --- a/test/scan-test.cc +++ b/test/scan-test.cc @@ -7,8 +7,6 @@ #include "scan.h" -#include - #include #include diff --git a/test/xchar-test.cc b/test/xchar-test.cc index f6620ddf..ec82d425 100644 --- a/test/xchar-test.cc +++ b/test/xchar-test.cc @@ -7,9 +7,7 @@ #include "fmt/xchar.h" -#include #include -#include #include #include "fmt/chrono.h"