Use a map to store the Library's books.

Having the books sorted is useless.
We handle books by id not by index.
This commit is contained in:
Matthieu Gautier
2018-08-30 11:23:39 +02:00
parent 541fb0cfd1
commit 57ac6f0305
5 changed files with 27 additions and 58 deletions

View File

@ -99,14 +99,6 @@ class Manager
*/
bool readOpds(const string& content, const std::string& urlHost);
/**
* Remove a book from the library.
*
* @param bookIndex the index of the book to remove
* @return True
*/
bool removeBookByIndex(const unsigned int bookIndex);
/**
* Remove a book from the library.
*