Skip to content

Commit 981d8d5

Browse files
committed
tests: Remove unnecessary includes.
Found by Jetbrains CLion.
1 parent c415729 commit 981d8d5

31 files changed

+0
-93
lines changed

tests/test_accum_iter.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
#include "testutilities.h"
66
#include <sigc++/sigc++.h>
7-
#include <sstream>
87
#include <algorithm>
9-
#include <functional>
10-
#include <cstdlib>
118

129
namespace
1310
{

tests/test_accumulated.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
#include "testutilities.h"
66
#include <sigc++/trackable.h>
77
#include <sigc++/signal.h>
8-
#include <sigc++/functors/ptr_fun.h>
9-
#include <sigc++/functors/mem_fun.h>
10-
#include <sstream>
118
#include <iomanip>
129
#include <vector>
13-
#include <cstdlib>
1410

1511
namespace
1612
{

tests/test_bind.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
#include "testutilities.h"
66
#include <sigc++/adaptors/bind.h>
77
#include <sigc++/functors/slot.h>
8-
#include <sstream>
9-
#include <string>
10-
#include <functional> //For std::ref().
11-
#include <cstdlib>
128

139
namespace
1410
{

tests/test_bind_as_slot.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
#include "testutilities.h"
66
#include <sigc++/adaptors/bind.h>
77
#include <sigc++/functors/slot.h>
8-
#include <sstream>
9-
#include <string>
10-
#include <functional> //For std::ref().
11-
#include <cstdlib>
128

139
namespace
1410
{

tests/test_bind_ref.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
#include "testutilities.h"
66
#include <sigc++/sigc++.h>
7-
#include <sstream>
8-
#include <string>
9-
#include <functional> //For std::ref().
10-
#include <cstdlib>
117

128
namespace
139
{

tests/test_bind_refptr.cc

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

2525
#include "testutilities.h"
2626
#include <sigc++/sigc++.h>
27-
#include <sstream>
28-
#include <cstdlib>
2927

3028
#define ACTIVATE_BUG 1
3129

tests/test_bind_return.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
#include "testutilities.h"
66
#include <sigc++/adaptors/bind_return.h>
77
#include <sigc++/functors/slot.h>
8-
#include <sstream>
9-
#include <string>
10-
#include <functional> //For std::ref().
11-
#include <cstdlib>
128

139
namespace
1410
{

tests/test_compose.cc

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

55
#include "testutilities.h"
66
#include <sigc++/adaptors/compose.h>
7-
#include <sstream>
8-
#include <cstdlib>
97

108
namespace
119
{

tests/test_copy_invalid_slot.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33
*/
44

55
#include "testutilities.h"
6-
#include <sstream>
7-
#include <cstdlib>
86
#include <sigc++/sigc++.h>
9-
#include <stdlib.h>
107
#include <string.h>
11-
#include <functional> //For std::ref().
128

139
namespace
1410
{

tests/test_cpp11_lambda.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,8 @@
4343
// If test_cpp11_lambda writes nothing and the return code is 0, the test has passed.
4444

4545
#include "testutilities.h"
46-
#include <string>
4746
#include <iostream>
48-
#include <sstream>
4947
#include <functional>
50-
#include <cstdlib>
5148
#include <sigc++/functors/functors.h>
5249
#include <sigc++/bind.h>
5350
#include <sigc++/adaptors/track_obj.h>

tests/test_custom.cc

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

99
#include "testutilities.h"
10-
#include <sstream>
11-
#include <cstdlib>
1210
#include <sigc++/sigc++.h>
1311

1412
namespace

tests/test_disconnect.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@
55
#include "testutilities.h"
66
#include <sigc++/trackable.h>
77
#include <sigc++/signal.h>
8-
#include <sigc++/connection.h>
98
#include <sigc++/adaptors/compose.h>
10-
#include <sigc++/functors/ptr_fun.h>
11-
#include <sigc++/functors/mem_fun.h>
12-
#include <sstream>
13-
#include <cstdlib>
149

1510
// The Tru64 compiler seems to need this to avoid an unresolved symbol
1611
// See bug #161503
17-
#include <new>
1812

1913
namespace
2014
{

tests/test_exception_catch.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
#include "testutilities.h"
66
#include <sigc++/adaptors/exception_catch.h>
7-
#include <sstream>
8-
#include <stdexcept>
9-
#include <cstdlib>
107

118
namespace
129
{

tests/test_hide.cc

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

55
#include "testutilities.h"
66
#include <sigc++/adaptors/hide.h>
7-
#include <sstream>
8-
#include <cstdlib>
97

108
namespace
119
{

tests/test_limit_reference.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
#include "testutilities.h"
66
#include <sigc++/sigc++.h>
7-
#include <sstream>
8-
#include <functional> //For std::ref().
9-
#include <cstdlib>
107

118
namespace
129
{

tests/test_mem_fun.cc

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

55
#include "testutilities.h"
66
#include <sigc++/sigc++.h>
7-
#include <sstream>
8-
#include <cstdlib>
97

108
// TODO: put something like #ifndef FORTE (some older version, I think) or AIX xlC... #else ...
119
// #endif around:

tests/test_ptr_fun.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
*/
44

55
#include "testutilities.h"
6-
#include <sstream>
76
#include <sigc++/sigc++.h>
8-
#include <cstdlib>
97

108
// TODO: put something like #ifndef FORTE ... #else ... #endif around:
119
#define ENABLE_TEST_OF_OVERLOADED_FUNCTIONS 0

tests/test_retype.cc

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

55
#include "testutilities.h"
66
#include <sigc++/adaptors/retype.h>
7-
#include <sstream>
8-
#include <cstdlib>
97

108
namespace
119
{

tests/test_retype_return.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#include "testutilities.h"
66
#include <sigc++/adaptors/retype_return.h>
77
#include <sigc++/functors/slot.h>
8-
#include <sstream>
9-
#include <cstdlib>
108

119
namespace
1210
{

tests/test_signal.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
#include "testutilities.h"
66
#include <sigc++/trackable.h>
77
#include <sigc++/signal.h>
8-
#include <sigc++/functors/ptr_fun.h>
9-
#include <sigc++/functors/mem_fun.h>
10-
#include <string>
11-
#include <cstdlib>
128

139
namespace
1410
{

tests/test_signal_move.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
#include "testutilities.h"
66
#include <sigc++/trackable.h>
77
#include <sigc++/signal.h>
8-
#include <sigc++/functors/ptr_fun.h>
9-
#include <sigc++/functors/mem_fun.h>
10-
#include <string>
11-
#include <cstdlib>
128

139
namespace
1410
{

tests/test_size.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include "testutilities.h"
66
#include <sigc++/sigc++.h>
77
#include <iostream>
8-
#include <cstdlib>
98

109
// The correct result of this test may be implementation-dependent.
1110
// No attempt is made to decide if the result is correct.

tests/test_slot.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@
44

55
#include "testutilities.h"
66
#include <sigc++/functors/slot.h>
7-
#include <sstream>
8-
#include <string>
9-
#include <cstdlib>
107

118
// The Tru64 compiler seems to need this to avoid an unresolved symbol
129
// See bug #161503
13-
#include <new>
1410

1511
namespace
1612
{

tests/test_slot_disconnect.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
#include "testutilities.h"
66
#include <sigc++/functors/slot.h>
7-
#include <sstream>
8-
#include <string>
9-
#include <cstdlib>
107

118
namespace
129
{

tests/test_slot_move.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@
44

55
#include "testutilities.h"
66
#include <sigc++/functors/slot.h>
7-
#include <sstream>
8-
#include <string>
9-
#include <cstdlib>
107

118
// The Tru64 compiler seems to need this to avoid an unresolved symbol
129
// See bug #161503
13-
#include <new>
1410

1511
namespace
1612
{

tests/test_track_obj.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@
3434
// If test_track_obj writes nothing and the return code is 0, the test has passed.
3535

3636
#include "testutilities.h"
37-
#include <string>
3837
#include <iostream>
39-
#include <sstream>
40-
#include <cstdlib>
4138
#include <sigc++/adaptors/track_obj.h>
4239
#include <sigc++/signal.h>
4340

tests/test_trackable.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
*/
44

55
#include "testutilities.h"
6-
#include <sstream>
7-
#include <cstdlib>
86
#include <sigc++/trackable.h>
97
#include <sigc++/functors/slot.h>
10-
#include <sigc++/functors/mem_fun.h>
118

129
namespace
1310
{

tests/test_trackable_move.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
*/
44

55
#include "testutilities.h"
6-
#include <sstream>
7-
#include <cstdlib>
86
#include <sigc++/trackable.h>
97
#include <sigc++/functors/slot.h>
10-
#include <sigc++/functors/mem_fun.h>
118

129
namespace
1310
{

tests/test_tuple_cdr.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <cassert>
1818
#include <cstdlib>
1919
#include <sigc++/tuple-utils/tuple_cdr.h>
20-
#include <utility>
2120
#include <functional>
2221

2322
void

tests/test_tuple_for_each.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
#include <cassert>
1818
#include <cstdlib>
1919
#include <sigc++/tuple-utils/tuple_for_each.h>
20-
#include <utility>
21-
//#include <typeinfo>
2220
#include <iostream>
2321
#include <functional>
2422

tests/test_visit_each.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
*/
1818

1919
#include "testutilities.h"
20-
#include <string>
2120
#include <iostream>
22-
#include <sstream>
23-
#include <cstdlib>
2421
#include <sigc++/signal.h>
2522
#include <sigc++/adaptors/adapts.h>
2623

0 commit comments

Comments
 (0)