From 0b3b6072237ff3494aecc41b7ba88c24c0188157 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Sat, 2 Nov 2019 20:42:46 +0100 Subject: [PATCH] Deleted unused capture in lambda --- transition_machine/src/ActionBank.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/transition_machine/src/ActionBank.cpp b/transition_machine/src/ActionBank.cpp index 8493896..0291f71 100644 --- a/transition_machine/src/ActionBank.cpp +++ b/transition_machine/src/ActionBank.cpp @@ -16,7 +16,7 @@ Action::BasicAction ActionBank::moveHead(int movement) {c.moveHead(movement);}; auto undo = [movement](Config & c, Action::BasicAction &) {c.moveHead(-movement);}; - auto appliable = [movement](Config &, Action::BasicAction &) + auto appliable = [](Config &, Action::BasicAction &) {return true;}; Action::BasicAction basicAction = {Action::BasicAction::Type::MoveHead, "", apply, undo, appliable}; @@ -775,7 +775,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na { // Puting the EOS tag on the last element of the sentence. { - auto apply = [b2](Config & c, Action::BasicAction &) + auto apply = [](Config & c, Action::BasicAction &) { int b0 = c.getHead(); int s0 = c.stackTop(); @@ -1030,7 +1030,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na undoForReal(c, classifierName); }; - auto undo = [dist](Config &, Action::BasicAction &) + auto undo = [](Config &, Action::BasicAction &) { }; auto appliable = [dist](Config & c, Action::BasicAction) -- GitLab