Skip to content

Commit

Permalink
Removed an unnecessary chunk of codes introduced by the merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoaki Okazaki committed Jan 25, 2016
1 parent 52114c1 commit 387ca69
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions include/crfsuite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,27 +278,6 @@ Tagger::~Tagger()
this->close();
}

bool Tagger::open(const void* memory, int length)
{
int ret;

// Close the model if it is already opened.
this->close();

// Open the model file.
if ((ret = crfsuite_create_instance_from_ptr(memory, length, (void**)&model))) {
return false;
}

// Obtain the tagger interface.
if ((ret = model->get_tagger(model, &tagger))) {
throw std::runtime_error("Failed to obtain the tagger interface");
}

return true;

}

bool Tagger::open(const std::string& name)
{
int ret;
Expand Down

0 comments on commit 387ca69

Please sign in to comment.