mirror of https://github.com/kiwix/libkiwix.git
Remove unwanted reader functions
Removing the functions in InternalServer that are no longer needed.
This commit is contained in:
parent
bc821638da
commit
a94a03cd22
|
@ -803,18 +803,6 @@ std::string searchSuggestionHTML(const std::string& searchURL, const std::string
|
||||||
|
|
||||||
} // unnamed namespace
|
} // 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>
|
std::unique_ptr<Response>
|
||||||
InternalServer::build_redirect(const std::string& bookName, const zim::Item& item) const
|
InternalServer::build_redirect(const std::string& bookName, const zim::Item& item) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -89,7 +89,6 @@ class InternalServer {
|
||||||
|
|
||||||
MustacheData get_default_data() const;
|
MustacheData get_default_data() const;
|
||||||
|
|
||||||
std::shared_ptr<Reader> get_reader(const std::string& bookName) const;
|
|
||||||
bool etag_not_needed(const RequestContext& r) const;
|
bool etag_not_needed(const RequestContext& r) const;
|
||||||
ETag get_matching_if_none_match_etag(const RequestContext& request) const;
|
ETag get_matching_if_none_match_etag(const RequestContext& request) const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue