mirror of https://github.com/kiwix/libkiwix.git
Remove unnecessary setBookIndex.
We can use default argument instead of creating a new method.
This commit is contained in:
parent
63339793d2
commit
f93f50087b
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue