Skip to content

Commit 9396f77

Browse files
authored
Remove unused header includes in test files (#4729)
1 parent d2a159f commit 9396f77

9 files changed

Lines changed: 10 additions & 21 deletions

test/chrono-test.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#include "fmt/chrono.h"
99

10-
#include <algorithm>
1110
#include <ctime>
1211
#include <vector>
1312

test/format-impl-test.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//
66
// For the license information refer to format.h.
77

8-
#include <algorithm>
98
#include <cstring>
109

1110
// clang-format off

test/format-test.cc

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,16 @@
1515

1616
#include <stdint.h> // uint32_t
1717

18-
#include <cfenv> // fegetexceptflag and FE_ALL_EXCEPT
19-
#include <climits> // INT_MAX
20-
#include <cmath> // std::signbit
21-
#include <condition_variable> // std::condition_variable
22-
#include <cstring> // std::strlen
23-
#include <iterator> // std::back_inserter
24-
#include <list> // std::list
25-
#include <mutex> // std::mutex
26-
#include <string> // std::string
27-
#include <thread> // std::thread
28-
#include <type_traits> // std::is_default_constructible
18+
#include <cfenv> // fegetexceptflag and FE_ALL_EXCEPT
19+
#include <climits> // INT_MAX
20+
#include <cmath> // std::signbit
21+
#include <cstring> // std::strlen
22+
#include <iterator> // std::back_inserter
23+
#include <list> // std::list
24+
#include <mutex> // std::mutex
25+
#include <string> // std::string
26+
#include <thread> // std::thread
27+
#include <type_traits> // std::is_default_constructible
2928
#if FMT_CPLUSPLUS > 201703L && FMT_HAS_INCLUDE(<version>)
3029
# include <version>
3130
#endif

test/gtest-extra-test.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#include <gtest/gtest-spi.h>
1111

12-
#include <cstring>
1312
#include <memory>
1413
#include <stdexcept>
1514

test/os-test.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#include "fmt/os.h"
99

10-
#include <cstdlib> // std::exit
1110
#include <cstring>
1211
#include <memory>
1312
#include <thread>

test/printf-test.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#include <cctype>
1111
#include <climits>
12-
#include <cstring>
1312

1413
#include "fmt/xchar.h" // DEPRECATED!
1514
#include "gtest-extra.h"

test/ranges-test.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <array>
1111
#include <list>
1212
#include <map>
13-
#include <numeric>
1413
#include <queue>
1514
#include <stack>
1615
#include <string>

test/scan-test.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
#include "scan.h"
99

10-
#include <time.h>
11-
1210
#include <climits>
1311
#include <thread>
1412

test/xchar-test.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
#include "fmt/xchar.h"
99

10-
#include <algorithm>
1110
#include <complex>
12-
#include <cwchar>
1311
#include <vector>
1412

1513
#include "fmt/chrono.h"

0 commit comments

Comments
 (0)