From a0d4ed573d0f8b9ae406817f2160d1aca041c1a8 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Mon, 19 Feb 2024 18:20:00 +0400 Subject: [PATCH] Removed faviconMimeType from ContentManager::getBookInfos() "faviconMimeType" is not used anywhere but is responsible for some of the too much clutter in ContentManager::getBookInfos(). --- src/contentmanager.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/contentmanager.cpp b/src/contentmanager.cpp index 7a9b280..54d0bdf 100644 --- a/src/contentmanager.cpp +++ b/src/contentmanager.cpp @@ -297,17 +297,6 @@ ContentManager::BookInfo ContentManager::getBookInfos(QString id, const QStringL ADD_V("url", getUrl); ADD_V("name", getName); ADD_V("downloadId", getDownloadId); - if (key == "faviconMimeType") { - std::string mimeType; - try { - auto item = b->getIllustration(48); - mimeType = item->mimeType; - } catch (...) { - const kiwix::Book::Illustration tempIllustration; - mimeType = tempIllustration.mimeType; - } - values.insert(key, QString::fromStdString(mimeType)); - } if (key == "faviconUrl") { std::string url; try {