From 653c0df2d958d96d50cd5bf98fc0f60628a4bf69 Mon Sep 17 00:00:00 2001 From: Kitsu Date: Mon, 26 Mar 2018 21:58:58 +0300 Subject: [PATCH] Remove unused this captures (#1124) Signed-off-by: Kitsu --- test/module/irohad/torii/processor/query_processor_test.cpp | 4 ++-- .../irohad/torii/processor/transaction_processor_test.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/module/irohad/torii/processor/query_processor_test.cpp b/test/module/irohad/torii/processor/query_processor_test.cpp index c2948652a5..8814c05687 100644 --- a/test/module/irohad/torii/processor/query_processor_test.cpp +++ b/test/module/irohad/torii/processor/query_processor_test.cpp @@ -94,11 +94,11 @@ TEST_F(QueryProcessorTest, QueryProcessorWhereInvokeInvalidQuery) { EXPECT_CALL(*wsv_queries, getRolePermissions(role)).WillOnce(Return(perms)); auto wrapper = make_test_subscriber(qpi.queryNotifier(), 1); - wrapper.subscribe([this](auto response) { + wrapper.subscribe([](auto response) { auto resp = response->get(); /// check if obtained response is error response boost::apply_visitor( - [this](auto val) { + [](auto val) { if (std::is_same< decltype(val), shared_model::detail::PolymorphicWrapper< diff --git a/test/module/irohad/torii/processor/transaction_processor_test.cpp b/test/module/irohad/torii/processor/transaction_processor_test.cpp index 24cdfc20de..a834625229 100644 --- a/test/module/irohad/torii/processor/transaction_processor_test.cpp +++ b/test/module/irohad/torii/processor/transaction_processor_test.cpp @@ -63,7 +63,7 @@ class TransactionProcessorTest : public ::testing::Test { auto tx_status = status_map.find(tx.hash()); ASSERT_NE(tx_status, status_map.end()); boost::apply_visitor( - [this](auto val) { + [](auto val) { if (std::is_same::value) { SUCCEED(); } else {