Skip to content

Commit

Permalink
fixing link untokenize
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebrissow committed Jan 28, 2025
1 parent cb8533d commit 884d681
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions src/cpp/link_creation_agent/link.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,5 @@ vector<string> Link::tokenize()

Link Link::untokenize(string link)
{
vector<string> tokens;
string token;
for (char c : link)
{
if (c == ' ')
{
tokens.push_back(token);
token = "";
}
else
{
token += c;
}
}
tokens.push_back(token);
Link answer;
answer.set_type(tokens[0]);
for (unsigned int i = 1; i < tokens.size(); i++)
{
answer.add_target(tokens[i]);
}
return answer;
return Link();
}

0 comments on commit 884d681

Please sign in to comment.