aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/script.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-10-28 21:19:36 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:36 +0200
commit134b6691cb57bb0089889faea2e4788bd450941e (patch)
tree4cf89997580054c9b13677689501a5f47b74e833 /build2/test/script/script.cxx
parentbd6ebe8c2ca359fb201b84d9004b650d943b4d51 (diff)
Add support for &dir/*** test path cleanup syntax
Diffstat (limited to 'build2/test/script/script.cxx')
-rw-r--r--build2/test/script/script.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/build2/test/script/script.cxx b/build2/test/script/script.cxx
index f1dab63..058720a 100644
--- a/build2/test/script/script.cxx
+++ b/build2/test/script/script.cxx
@@ -291,16 +291,7 @@ namespace build2
// command
//
void scope::
- clean (const path& p)
- {
- using std::find; // Hidden by scope::find().
-
- if (find (cleanups.begin (), cleanups.end (), p) == cleanups.end ())
- cleanups.emplace_back (p);
- }
-
- void scope::
- clean (path&& p)
+ clean (path p)
{
using std::find; // Hidden by scope::find().