Remove unnecessary setBookIndex.

We can use default argument instead of creating a new method.
This commit is contained in:
Matthieu Gautier 2018-03-12 17:25:14 +01:00
parent 63339793d2
commit f93f50087b
2 changed files with 1 additions and 7 deletions

View File

@ -141,8 +141,7 @@ class Manager
*/
bool setBookIndex(const string id,
const string path,
const supportedIndexType type);
bool setBookIndex(const string id, const string path);
const supportedIndexType type = XAPIAN);
/**
* Set the path of the zim file associated to a book.

View File

@ -495,11 +495,6 @@ bool Manager::setBookIndex(const string id,
return false;
}
bool Manager::setBookIndex(const string id, const string path)
{
return this->setBookIndex(id, path, XAPIAN);
}
bool Manager::setBookPath(const string id, const string path)
{
std::vector<kiwix::Book>::iterator itr;