summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2017-04-18 17:56:25 +0200
committerMurray Cumming <murrayc@murrayc.com>2017-04-18 17:56:25 +0200
commit981d8d5b1c49e9ef1c8411bc17b8aa76ef851c7e (patch)
treeb6d497d7445fc4471839522d5261be1542144dec
parentc4157298e17661a751cf902faba7bcf5d4bddfbd (diff)
downloadsigc++-981d8d5b1c49e9ef1c8411bc17b8aa76ef851c7e.tar.gz
tests: Remove unnecessary includes.
Found by Jetbrains CLion.
-rw-r--r--tests/test_accum_iter.cc3
-rw-r--r--tests/test_accumulated.cc4
-rw-r--r--tests/test_bind.cc4
-rw-r--r--tests/test_bind_as_slot.cc4
-rw-r--r--tests/test_bind_ref.cc4
-rw-r--r--tests/test_bind_refptr.cc2
-rw-r--r--tests/test_bind_return.cc4
-rw-r--r--tests/test_compose.cc2
-rw-r--r--tests/test_copy_invalid_slot.cc4
-rw-r--r--tests/test_cpp11_lambda.cc3
-rw-r--r--tests/test_custom.cc2
-rw-r--r--tests/test_disconnect.cc6
-rw-r--r--tests/test_exception_catch.cc3
-rw-r--r--tests/test_hide.cc2
-rw-r--r--tests/test_limit_reference.cc3
-rw-r--r--tests/test_mem_fun.cc2
-rw-r--r--tests/test_ptr_fun.cc2
-rw-r--r--tests/test_retype.cc2
-rw-r--r--tests/test_retype_return.cc2
-rw-r--r--tests/test_signal.cc4
-rw-r--r--tests/test_signal_move.cc4
-rw-r--r--tests/test_size.cc1
-rw-r--r--tests/test_slot.cc4
-rw-r--r--tests/test_slot_disconnect.cc3
-rw-r--r--tests/test_slot_move.cc4
-rw-r--r--tests/test_track_obj.cc3
-rw-r--r--tests/test_trackable.cc3
-rw-r--r--tests/test_trackable_move.cc3
-rw-r--r--tests/test_tuple_cdr.cc1
-rw-r--r--tests/test_tuple_for_each.cc2
-rw-r--r--tests/test_visit_each.cc3
31 files changed, 0 insertions, 93 deletions
diff --git a/tests/test_accum_iter.cc b/tests/test_accum_iter.cc
index a4fe697..948974c 100644
--- a/tests/test_accum_iter.cc
+++ b/tests/test_accum_iter.cc
@@ -4,10 +4,7 @@
#include "testutilities.h"
#include <sigc++/sigc++.h>
-#include <sstream>
#include <algorithm>
-#include <functional>
-#include <cstdlib>
namespace
{
diff --git a/tests/test_accumulated.cc b/tests/test_accumulated.cc
index bdc3301..0a303b9 100644
--- a/tests/test_accumulated.cc
+++ b/tests/test_accumulated.cc
@@ -5,12 +5,8 @@
#include "testutilities.h"
#include <sigc++/trackable.h>
#include <sigc++/signal.h>
-#include <sigc++/functors/ptr_fun.h>
-#include <sigc++/functors/mem_fun.h>
-#include <sstream>
#include <iomanip>
#include <vector>
-#include <cstdlib>
namespace
{
diff --git a/tests/test_bind.cc b/tests/test_bind.cc
index 949d052..ca86379 100644
--- a/tests/test_bind.cc
+++ b/tests/test_bind.cc
@@ -5,10 +5,6 @@
#include "testutilities.h"
#include <sigc++/adaptors/bind.h>
#include <sigc++/functors/slot.h>
-#include <sstream>
-#include <string>
-#include <functional> //For std::ref().
-#include <cstdlib>
namespace
{
diff --git a/tests/test_bind_as_slot.cc b/tests/test_bind_as_slot.cc
index d65e357..4164fd9 100644
--- a/tests/test_bind_as_slot.cc
+++ b/tests/test_bind_as_slot.cc
@@ -5,10 +5,6 @@
#include "testutilities.h"
#include <sigc++/adaptors/bind.h>
#include <sigc++/functors/slot.h>
-#include <sstream>
-#include <string>
-#include <functional> //For std::ref().
-#include <cstdlib>
namespace
{
diff --git a/tests/test_bind_ref.cc b/tests/test_bind_ref.cc
index fd1fb4e..33c0b9d 100644
--- a/tests/test_bind_ref.cc
+++ b/tests/test_bind_ref.cc
@@ -4,10 +4,6 @@
#include "testutilities.h"
#include <sigc++/sigc++.h>
-#include <sstream>
-#include <string>
-#include <functional> //For std::ref().
-#include <cstdlib>
namespace
{
diff --git a/tests/test_bind_refptr.cc b/tests/test_bind_refptr.cc
index 8bc59b8..6840462 100644
--- a/tests/test_bind_refptr.cc
+++ b/tests/test_bind_refptr.cc
@@ -24,8 +24,6 @@
#include "testutilities.h"
#include <sigc++/sigc++.h>
-#include <sstream>
-#include <cstdlib>
#define ACTIVATE_BUG 1
diff --git a/tests/test_bind_return.cc b/tests/test_bind_return.cc
index bb224bc..a6dead3 100644
--- a/tests/test_bind_return.cc
+++ b/tests/test_bind_return.cc
@@ -5,10 +5,6 @@
#include "testutilities.h"
#include <sigc++/adaptors/bind_return.h>
#include <sigc++/functors/slot.h>
-#include <sstream>
-#include <string>
-#include <functional> //For std::ref().
-#include <cstdlib>
namespace
{
diff --git a/tests/test_compose.cc b/tests/test_compose.cc
index 1913a58..2669be9 100644
--- a/tests/test_compose.cc
+++ b/tests/test_compose.cc
@@ -4,8 +4,6 @@
#include "testutilities.h"
#include <sigc++/adaptors/compose.h>
-#include <sstream>
-#include <cstdlib>
namespace
{
diff --git a/tests/test_copy_invalid_slot.cc b/tests/test_copy_invalid_slot.cc
index 307445b..48bbfd8 100644
--- a/tests/test_copy_invalid_slot.cc
+++ b/tests/test_copy_invalid_slot.cc
@@ -3,12 +3,8 @@
*/
#include "testutilities.h"
-#include <sstream>
-#include <cstdlib>
#include <sigc++/sigc++.h>
-#include <stdlib.h>
#include <string.h>
-#include <functional> //For std::ref().
namespace
{
diff --git a/tests/test_cpp11_lambda.cc b/tests/test_cpp11_lambda.cc
index da92f24..14bee3c 100644
--- a/tests/test_cpp11_lambda.cc
+++ b/tests/test_cpp11_lambda.cc
@@ -43,11 +43,8 @@
// If test_cpp11_lambda writes nothing and the return code is 0, the test has passed.
#include "testutilities.h"
-#include <string>
#include <iostream>
-#include <sstream>
#include <functional>
-#include <cstdlib>
#include <sigc++/functors/functors.h>
#include <sigc++/bind.h>
#include <sigc++/adaptors/track_obj.h>
diff --git a/tests/test_custom.cc b/tests/test_custom.cc
index 48002ff..50e4df1 100644
--- a/tests/test_custom.cc
+++ b/tests/test_custom.cc
@@ -7,8 +7,6 @@
// currently hacking.
#include "testutilities.h"
-#include <sstream>
-#include <cstdlib>
#include <sigc++/sigc++.h>
namespace
diff --git a/tests/test_disconnect.cc b/tests/test_disconnect.cc
index 7754663..4cbf3c9 100644
--- a/tests/test_disconnect.cc
+++ b/tests/test_disconnect.cc
@@ -5,16 +5,10 @@
#include "testutilities.h"
#include <sigc++/trackable.h>
#include <sigc++/signal.h>
-#include <sigc++/connection.h>
#include <sigc++/adaptors/compose.h>
-#include <sigc++/functors/ptr_fun.h>
-#include <sigc++/functors/mem_fun.h>
-#include <sstream>
-#include <cstdlib>
// The Tru64 compiler seems to need this to avoid an unresolved symbol
// See bug #161503
-#include <new>
namespace
{
diff --git a/tests/test_exception_catch.cc b/tests/test_exception_catch.cc
index b9d1056..1a1b0be 100644
--- a/tests/test_exception_catch.cc
+++ b/tests/test_exception_catch.cc
@@ -4,9 +4,6 @@
#include "testutilities.h"
#include <sigc++/adaptors/exception_catch.h>
-#include <sstream>
-#include <stdexcept>
-#include <cstdlib>
namespace
{
diff --git a/tests/test_hide.cc b/tests/test_hide.cc
index 20284df..2a2ec21 100644
--- a/tests/test_hide.cc
+++ b/tests/test_hide.cc
@@ -4,8 +4,6 @@
#include "testutilities.h"
#include <sigc++/adaptors/hide.h>
-#include <sstream>
-#include <cstdlib>
namespace
{
diff --git a/tests/test_limit_reference.cc b/tests/test_limit_reference.cc
index 5031263..70caae8 100644
--- a/tests/test_limit_reference.cc
+++ b/tests/test_limit_reference.cc
@@ -4,9 +4,6 @@
#include "testutilities.h"
#include <sigc++/sigc++.h>
-#include <sstream>
-#include <functional> //For std::ref().
-#include <cstdlib>
namespace
{
diff --git a/tests/test_mem_fun.cc b/tests/test_mem_fun.cc
index 50408d6..202511f 100644
--- a/tests/test_mem_fun.cc
+++ b/tests/test_mem_fun.cc
@@ -4,8 +4,6 @@
#include "testutilities.h"
#include <sigc++/sigc++.h>
-#include <sstream>
-#include <cstdlib>
// TODO: put something like #ifndef FORTE (some older version, I think) or AIX xlC... #else ...
// #endif around:
diff --git a/tests/test_ptr_fun.cc b/tests/test_ptr_fun.cc
index 7cbd8f4..e1e7ba1 100644
--- a/tests/test_ptr_fun.cc
+++ b/tests/test_ptr_fun.cc
@@ -3,9 +3,7 @@
*/
#include "testutilities.h"
-#include <sstream>
#include <sigc++/sigc++.h>
-#include <cstdlib>
// TODO: put something like #ifndef FORTE ... #else ... #endif around:
#define ENABLE_TEST_OF_OVERLOADED_FUNCTIONS 0
diff --git a/tests/test_retype.cc b/tests/test_retype.cc
index 3fc7f0d..7376bf8 100644
--- a/tests/test_retype.cc
+++ b/tests/test_retype.cc
@@ -4,8 +4,6 @@
#include "testutilities.h"
#include <sigc++/adaptors/retype.h>
-#include <sstream>
-#include <cstdlib>
namespace
{
diff --git a/tests/test_retype_return.cc b/tests/test_retype_return.cc
index 4d0ba03..34c0325 100644
--- a/tests/test_retype_return.cc
+++ b/tests/test_retype_return.cc
@@ -5,8 +5,6 @@
#include "testutilities.h"
#include <sigc++/adaptors/retype_return.h>
#include <sigc++/functors/slot.h>
-#include <sstream>
-#include <cstdlib>
namespace
{
diff --git a/tests/test_signal.cc b/tests/test_signal.cc
index 0f72199..b5728da 100644
--- a/tests/test_signal.cc
+++ b/tests/test_signal.cc
@@ -5,10 +5,6 @@
#include "testutilities.h"
#include <sigc++/trackable.h>
#include <sigc++/signal.h>
-#include <sigc++/functors/ptr_fun.h>
-#include <sigc++/functors/mem_fun.h>
-#include <string>
-#include <cstdlib>
namespace
{
diff --git a/tests/test_signal_move.cc b/tests/test_signal_move.cc
index a8c3916..82080c1 100644
--- a/tests/test_signal_move.cc
+++ b/tests/test_signal_move.cc
@@ -5,10 +5,6 @@
#include "testutilities.h"
#include <sigc++/trackable.h>
#include <sigc++/signal.h>
-#include <sigc++/functors/ptr_fun.h>
-#include <sigc++/functors/mem_fun.h>
-#include <string>
-#include <cstdlib>
namespace
{
diff --git a/tests/test_size.cc b/tests/test_size.cc
index 9e116fd..d49af99 100644
--- a/tests/test_size.cc
+++ b/tests/test_size.cc
@@ -5,7 +5,6 @@
#include "testutilities.h"
#include <sigc++/sigc++.h>
#include <iostream>
-#include <cstdlib>
// The correct result of this test may be implementation-dependent.
// No attempt is made to decide if the result is correct.
diff --git a/tests/test_slot.cc b/tests/test_slot.cc
index c6f417e..7fd68bd 100644
--- a/tests/test_slot.cc
+++ b/tests/test_slot.cc
@@ -4,13 +4,9 @@
#include "testutilities.h"
#include <sigc++/functors/slot.h>
-#include <sstream>
-#include <string>
-#include <cstdlib>
// The Tru64 compiler seems to need this to avoid an unresolved symbol
// See bug #161503
-#include <new>
namespace
{
diff --git a/tests/test_slot_disconnect.cc b/tests/test_slot_disconnect.cc
index 6eb464f..e14cf99 100644
--- a/tests/test_slot_disconnect.cc
+++ b/tests/test_slot_disconnect.cc
@@ -4,9 +4,6 @@
#include "testutilities.h"
#include <sigc++/functors/slot.h>
-#include <sstream>
-#include <string>
-#include <cstdlib>
namespace
{
diff --git a/tests/test_slot_move.cc b/tests/test_slot_move.cc
index c9c7210..f1bec22 100644
--- a/tests/test_slot_move.cc
+++ b/tests/test_slot_move.cc
@@ -4,13 +4,9 @@
#include "testutilities.h"
#include <sigc++/functors/slot.h>
-#include <sstream>
-#include <string>
-#include <cstdlib>
// The Tru64 compiler seems to need this to avoid an unresolved symbol
// See bug #161503
-#include <new>
namespace
{
diff --git a/tests/test_track_obj.cc b/tests/test_track_obj.cc
index 2d29f4b..bdca485 100644
--- a/tests/test_track_obj.cc
+++ b/tests/test_track_obj.cc
@@ -34,10 +34,7 @@
// If test_track_obj writes nothing and the return code is 0, the test has passed.
#include "testutilities.h"
-#include <string>
#include <iostream>
-#include <sstream>
-#include <cstdlib>
#include <sigc++/adaptors/track_obj.h>
#include <sigc++/signal.h>
diff --git a/tests/test_trackable.cc b/tests/test_trackable.cc
index 83a1861..cb55edb 100644
--- a/tests/test_trackable.cc
+++ b/tests/test_trackable.cc
@@ -3,11 +3,8 @@
*/
#include "testutilities.h"
-#include <sstream>
-#include <cstdlib>
#include <sigc++/trackable.h>
#include <sigc++/functors/slot.h>
-#include <sigc++/functors/mem_fun.h>
namespace
{
diff --git a/tests/test_trackable_move.cc b/tests/test_trackable_move.cc
index add3028..24ec47b 100644
--- a/tests/test_trackable_move.cc
+++ b/tests/test_trackable_move.cc
@@ -3,11 +3,8 @@
*/
#include "testutilities.h"
-#include <sstream>
-#include <cstdlib>
#include <sigc++/trackable.h>
#include <sigc++/functors/slot.h>
-#include <sigc++/functors/mem_fun.h>
namespace
{
diff --git a/tests/test_tuple_cdr.cc b/tests/test_tuple_cdr.cc
index e6355bf..cea800a 100644
--- a/tests/test_tuple_cdr.cc
+++ b/tests/test_tuple_cdr.cc
@@ -17,7 +17,6 @@
#include <cassert>
#include <cstdlib>
#include <sigc++/tuple-utils/tuple_cdr.h>
-#include <utility>
#include <functional>
void
diff --git a/tests/test_tuple_for_each.cc b/tests/test_tuple_for_each.cc
index 4a1f3f4..ed31617 100644
--- a/tests/test_tuple_for_each.cc
+++ b/tests/test_tuple_for_each.cc
@@ -17,8 +17,6 @@
#include <cassert>
#include <cstdlib>
#include <sigc++/tuple-utils/tuple_for_each.h>
-#include <utility>
-//#include <typeinfo>
#include <iostream>
#include <functional>
diff --git a/tests/test_visit_each.cc b/tests/test_visit_each.cc
index 0d081d1..2c74898 100644
--- a/tests/test_visit_each.cc
+++ b/tests/test_visit_each.cc
@@ -17,10 +17,7 @@
*/
#include "testutilities.h"
-#include <string>
#include <iostream>
-#include <sstream>
-#include <cstdlib>
#include <sigc++/signal.h>
#include <sigc++/adaptors/adapts.h>