From 5aa9c718cc347f00bc56c86d26015adc3781f5f9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 12 Jun 2017 14:06:28 +0200 Subject: Remove few unused lambda captures --- build2/cc/common.cxx | 4 ++-- build2/cc/install.cxx | 4 ++-- build2/cc/msvc.cxx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'build2/cc') diff --git a/build2/cc/common.cxx b/build2/cc/common.cxx index 1df84c9..b62358e 100644 --- a/build2/cc/common.cxx +++ b/build2/cc/common.cxx @@ -204,7 +204,7 @@ namespace build2 : var_pool[*t + ".sys_lib_dirs"]]); }; - auto find_lo = [top_lo, t, cc, &bs, &l, &lo, this] () + auto find_lo = [top_lo, t, cc, &bs, &l, &lo] () { lo = (t == nullptr || cc) ? top_lo : link_order (bs, link_type (l)); }; @@ -263,7 +263,7 @@ namespace build2 auto proc_int = [&l, &proc_impl, &proc_lib, &proc_opt, &sysd, &usrd, - &find_sysd, &find_lo, &sys, &sys_simple, + &find_sysd, &find_lo, &sys_simple, &bs, act, &lo, this] (const lookup& lu) { const vector* ns (cast_null> (lu)); diff --git a/build2/cc/install.cxx b/build2/cc/install.cxx index e09a62f..529a758 100644 --- a/build2/cc/install.cxx +++ b/build2/cc/install.cxx @@ -97,7 +97,7 @@ namespace build2 // auto& lp (t.data ()); - auto ln = [&id, this] (const path& f, const path& l) + auto ln = [&id] (const path& f, const path& l) { install_l (id, f.leaf (), l.leaf (), false); }; @@ -125,7 +125,7 @@ namespace build2 // auto& lp (t.data ()); - auto rm = [&id, this] (const path& l) + auto rm = [&id] (const path& l) { return uninstall_f (id, nullptr, l.leaf (), false); }; diff --git a/build2/cc/msvc.cxx b/build2/cc/msvc.cxx index e3765cd..b00b8a9 100644 --- a/build2/cc/msvc.cxx +++ b/build2/cc/msvc.cxx @@ -289,7 +289,7 @@ namespace build2 liba* r (nullptr); - auto search = [&r, &ld, &d, &p, exist, &trace, this] ( + auto search = [&r, &ld, &d, &p, exist, &trace] ( const char* pf, const char* sf) -> bool { r = msvc_search_library ( @@ -320,7 +320,7 @@ namespace build2 libs* s (nullptr); - auto search = [&s, &ld, &d, &pk, exist, &trace, this] ( + auto search = [&s, &ld, &d, &pk, exist, &trace] ( const char* pf, const char* sf) -> bool { if (libi* i = msvc_search_library ( -- cgit v1.1