Skip to content
Snippets Groups Projects
Commit 0b3b6072 authored by Franck Dary's avatar Franck Dary
Browse files

Deleted unused capture in lambda

parent 03c7072f
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ Action::BasicAction ActionBank::moveHead(int movement) ...@@ -16,7 +16,7 @@ Action::BasicAction ActionBank::moveHead(int movement)
{c.moveHead(movement);}; {c.moveHead(movement);};
auto undo = [movement](Config & c, Action::BasicAction &) auto undo = [movement](Config & c, Action::BasicAction &)
{c.moveHead(-movement);}; {c.moveHead(-movement);};
auto appliable = [movement](Config &, Action::BasicAction &) auto appliable = [](Config &, Action::BasicAction &)
{return true;}; {return true;};
Action::BasicAction basicAction = Action::BasicAction basicAction =
{Action::BasicAction::Type::MoveHead, "", apply, undo, appliable}; {Action::BasicAction::Type::MoveHead, "", apply, undo, appliable};
...@@ -775,7 +775,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na ...@@ -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. // 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 b0 = c.getHead();
int s0 = c.stackTop(); int s0 = c.stackTop();
...@@ -1030,7 +1030,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na ...@@ -1030,7 +1030,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na
undoForReal(c, classifierName); undoForReal(c, classifierName);
}; };
auto undo = [dist](Config &, Action::BasicAction &) auto undo = [](Config &, Action::BasicAction &)
{ {
}; };
auto appliable = [dist](Config & c, Action::BasicAction) auto appliable = [dist](Config & c, Action::BasicAction)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment