[libsigcplusplus] tests: Remove unnecessary includes.



commit 981d8d5b1c49e9ef1c8411bc17b8aa76ef851c7e
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Apr 18 17:56:25 2017 +0200

    tests: Remove unnecessary includes.
    
    Found by Jetbrains CLion.

 tests/test_accum_iter.cc        |    3 ---
 tests/test_accumulated.cc       |    4 ----
 tests/test_bind.cc              |    4 ----
 tests/test_bind_as_slot.cc      |    4 ----
 tests/test_bind_ref.cc          |    4 ----
 tests/test_bind_refptr.cc       |    2 --
 tests/test_bind_return.cc       |    4 ----
 tests/test_compose.cc           |    2 --
 tests/test_copy_invalid_slot.cc |    4 ----
 tests/test_cpp11_lambda.cc      |    3 ---
 tests/test_custom.cc            |    2 --
 tests/test_disconnect.cc        |    6 ------
 tests/test_exception_catch.cc   |    3 ---
 tests/test_hide.cc              |    2 --
 tests/test_limit_reference.cc   |    3 ---
 tests/test_mem_fun.cc           |    2 --
 tests/test_ptr_fun.cc           |    2 --
 tests/test_retype.cc            |    2 --
 tests/test_retype_return.cc     |    2 --
 tests/test_signal.cc            |    4 ----
 tests/test_signal_move.cc       |    4 ----
 tests/test_size.cc              |    1 -
 tests/test_slot.cc              |    4 ----
 tests/test_slot_disconnect.cc   |    3 ---
 tests/test_slot_move.cc         |    4 ----
 tests/test_track_obj.cc         |    3 ---
 tests/test_trackable.cc         |    3 ---
 tests/test_trackable_move.cc    |    3 ---
 tests/test_tuple_cdr.cc         |    1 -
 tests/test_tuple_for_each.cc    |    2 --
 tests/test_visit_each.cc        |    3 ---
 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>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]