From 04b05dd68b50b2a6bd764a73edef91ce573fb010 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 3 Sep 2018 15:46:31 +0200 Subject: [PATCH] Remove `removeBookById` from the Manager. Use the same method of the `Library`. --- include/manager.h | 8 -------- src/manager.cpp | 4 ---- 2 files changed, 12 deletions(-) diff --git a/include/manager.h b/include/manager.h index 383d33a92..f0d8fd687 100644 --- a/include/manager.h +++ b/include/manager.h @@ -99,14 +99,6 @@ class Manager */ bool readOpds(const string& content, const std::string& urlHost); - /** - * Remove a book from the library. - * - * @param id the id of the book to remove. - * @return True if the book were in the library. - */ - bool removeBookById(const string id); - /** * Set the path of the external fulltext index associated to a book. * diff --git a/src/manager.cpp b/src/manager.cpp index 36fc6f74b..f08790135 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -281,10 +281,6 @@ bool Manager::readBookFromPath(const string path, kiwix::Book* book) return true; } -bool Manager::removeBookById(const string id) -{ - return library.removeBookById(id); -} bool Manager::setBookIndex(const string id, const string path, const supportedIndexType type)