From 150331e701c5781ca57855395afcce122595cb3b Mon Sep 17 00:00:00 2001 From: Teon Banek Date: Tue, 15 Jan 2019 14:32:33 +0100 Subject: [PATCH] Remove unused variables Reviewers: mferencevic, llugovic Reviewed By: mferencevic, llugovic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1803 --- src/query/plan/pretty_print.cpp | 2 +- tests/concurrent/skip_list_remove_competitive.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/query/plan/pretty_print.cpp b/src/query/plan/pretty_print.cpp index 1862f4a63..371934ab0 100644 --- a/src/query/plan/pretty_print.cpp +++ b/src/query/plan/pretty_print.cpp @@ -187,7 +187,7 @@ bool PlanPrinter::PreVisit(query::plan::Union &op) { } bool PlanPrinter::Visit(query::plan::Once &op) { - WithPrintLn([&op](auto &out) { out << "* Once"; }); + WithPrintLn([](auto &out) { out << "* Once"; }); return true; } diff --git a/tests/concurrent/skip_list_remove_competitive.cpp b/tests/concurrent/skip_list_remove_competitive.cpp index 98b6acf85..f22ac8360 100644 --- a/tests/concurrent/skip_list_remove_competitive.cpp +++ b/tests/concurrent/skip_list_remove_competitive.cpp @@ -23,7 +23,7 @@ int main() { std::vector threads; for (int i = 0; i < kNumThreads; ++i) { - threads.push_back(std::thread([&list, &success, i] { + threads.push_back(std::thread([&list, &success] { for (uint64_t num = 0; num < kMaxNum; ++num) { auto acc = list.access(); if (acc.remove(num)) {