Skip to content

Commit

Permalink
Remove unwanted reader functions
Browse files Browse the repository at this point in the history
Removing the functions in InternalServer that are no longer needed.
  • Loading branch information
maneeshpm committed Jul 3, 2021
1 parent bc82163 commit a94a03c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/server/internalServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,18 +803,6 @@ std::string searchSuggestionHTML(const std::string& searchURL, const std::string

} // unnamed namespace

std::shared_ptr<Reader>
InternalServer::get_reader(const std::string& bookName) const
{
std::shared_ptr<Reader> reader;
try {
const std::string bookId = mp_nameMapper->getIdForName(bookName);
reader = mp_library->getReaderById(bookId);
} catch (const std::out_of_range& e) {
}
return reader;
}

std::unique_ptr<Response>
InternalServer::build_redirect(const std::string& bookName, const zim::Item& item) const
{
Expand Down
1 change: 0 additions & 1 deletion src/server/internalServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ class InternalServer {

MustacheData get_default_data() const;

std::shared_ptr<Reader> get_reader(const std::string& bookName) const;
bool etag_not_needed(const RequestContext& r) const;
ETag get_matching_if_none_match_etag(const RequestContext& request) const;

Expand Down

0 comments on commit a94a03c

Please sign in to comment.