Remove unused headers from tests

Message ID 20180515122124.GA29778@redhat.com
State New
Headers show
Series
  • Remove unused headers from tests
Related show

Commit Message

Jonathan Wakely May 15, 2018, 12:26 p.m.
I think these tests #include <vector> because I just copied an
existing test to a new file, and didn't remove the header.

	* testsuite/27_io/filesystem/path/decompose/extension.cc: Remove
	unused <vector> header.
	* testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
	* testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
	* testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
	* testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
	* testsuite/27_io/filesystem/path/query/has_relative_path.cc:
	Likewise.
	* testsuite/27_io/filesystem/path/query/has_root_directory.cc:
	Likewise.
	* testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
	* testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
	* testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
	* testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
	* testsuite/experimental/filesystem/path/decompose/extension.cc:
	Likewise.
	* testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
	* testsuite/experimental/filesystem/path/query/has_extension.cc:
	Likewise.
	* testsuite/experimental/filesystem/path/query/has_filename.cc:
	Likewise.
	* testsuite/experimental/filesystem/path/query/has_parent_path.cc:
	Likewise.
	* testsuite/experimental/filesystem/path/query/has_relative_path.cc:
	Likewise.
	* testsuite/experimental/filesystem/path/query/has_root_directory.cc:
	Likewise.
	* testsuite/experimental/filesystem/path/query/has_root_name.cc:
	Likewise.
	* testsuite/experimental/filesystem/path/query/has_root_path.cc:
	Likewise.
	* testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
	* testsuite/experimental/filesystem/path/query/is_relative.cc:
	Likewise.

Tested x86_64-linux, committed to trunk and gcc-8-branch.
commit b42543f7227904503a7c308ce3c406861b88a05f
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue May 15 13:16:18 2018 +0100

    Remove unused headers from tests
    
            * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove
            unused <vector> header.
            * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
            * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
            * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
            * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
            * testsuite/27_io/filesystem/path/query/has_relative_path.cc:
            Likewise.
            * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
            Likewise.
            * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
            * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
            * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
            * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
            * testsuite/experimental/filesystem/path/decompose/extension.cc:
            Likewise.
            * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
            * testsuite/experimental/filesystem/path/query/has_extension.cc:
            Likewise.
            * testsuite/experimental/filesystem/path/query/has_filename.cc:
            Likewise.
            * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
            Likewise.
            * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
            Likewise.
            * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
            Likewise.
            * testsuite/experimental/filesystem/path/query/has_root_name.cc:
            Likewise.
            * testsuite/experimental/filesystem/path/query/has_root_path.cc:
            Likewise.
            * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
            * testsuite/experimental/filesystem/path/query/is_relative.cc:
            Likewise.

Patch

diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/decompose/extension.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/decompose/extension.cc
index 2a314f24548..9084318aac0 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/path/decompose/extension.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/path/decompose/extension.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/query/empty.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/query/empty.cc
index dd04ac14c15..1b0118f79d2 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/path/query/empty.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/path/query/empty.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_extension.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_extension.cc
index 1624d0cab15..fd93f9337a0 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_extension.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_extension.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_filename.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_filename.cc
index eda08c7c94b..1eba6913474 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_filename.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_filename.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_parent_path.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_parent_path.cc
index 7ffe48c8739..6908046989c 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_parent_path.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_parent_path.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_relative_path.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_relative_path.cc
index 51d82320583..0381be10222 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_relative_path.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_relative_path.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_root_directory.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_root_directory.cc
index 24eca17a7ca..f509f4d52fd 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_root_directory.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_root_directory.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_root_name.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_root_name.cc
index e2763dd0754..0fa834ad6df 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_root_name.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_root_name.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_root_path.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_root_path.cc
index a66b54dfaa3..edb63b03fa6 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_root_path.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_root_path.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_stem.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_stem.cc
index 3ee31d26fa1..9686e2ab83b 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_stem.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/path/query/has_stem.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/query/is_relative.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/query/is_relative.cc
index d1017730803..a647e8e831f 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/path/query/is_relative.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/path/query/is_relative.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/decompose/extension.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/decompose/extension.cc
index ab828dd1655..f9a020f45b4 100644
--- a/libstdc++-v3/testsuite/experimental/filesystem/path/decompose/extension.cc
+++ b/libstdc++-v3/testsuite/experimental/filesystem/path/decompose/extension.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <experimental/filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/query/empty.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/query/empty.cc
index 26104533b1d..cc8c74bb478 100644
--- a/libstdc++-v3/testsuite/experimental/filesystem/path/query/empty.cc
+++ b/libstdc++-v3/testsuite/experimental/filesystem/path/query/empty.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <experimental/filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_extension.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_extension.cc
index 1afe4cfce3f..cf5e0769abf 100644
--- a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_extension.cc
+++ b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_extension.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <experimental/filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_filename.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_filename.cc
index b1eaabeeffb..a8b4b3252de 100644
--- a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_filename.cc
+++ b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_filename.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <experimental/filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_parent_path.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_parent_path.cc
index d5272181b02..a754e50e887 100644
--- a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_parent_path.cc
+++ b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_parent_path.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <experimental/filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_relative_path.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_relative_path.cc
index bd40d831b6a..e52745954c3 100644
--- a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_relative_path.cc
+++ b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_relative_path.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <experimental/filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_directory.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_directory.cc
index e2910673de1..d1444f7a5a8 100644
--- a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_directory.cc
+++ b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_directory.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <experimental/filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_name.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_name.cc
index 80cf98a34a0..a3da27add2c 100644
--- a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_name.cc
+++ b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_name.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <experimental/filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_path.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_path.cc
index a2207311e66..81e39a13d5d 100644
--- a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_path.cc
+++ b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_root_path.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <experimental/filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_stem.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_stem.cc
index 32f16133b3f..8522996e0af 100644
--- a/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_stem.cc
+++ b/libstdc++-v3/testsuite/experimental/filesystem/path/query/has_stem.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <experimental/filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>
 
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_relative.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_relative.cc
index 6c8c60b43cb..ce8255e402f 100644
--- a/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_relative.cc
+++ b/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_relative.cc
@@ -22,7 +22,6 @@ 
 // 8.4.9 path decomposition [path.decompose]
 
 #include <experimental/filesystem>
-#include <vector>
 #include <testsuite_hooks.h>
 #include <testsuite_fs.h>