Commit 59201337 authored by David Faure's avatar David Faure
Browse files

Remove unused KParts::BrowserInterface

"Update favicons" feature still works
parent 7b5ec2fa
......@@ -31,7 +31,7 @@
#include <KIO/FavIconRequestJob>
#include <kparts/part.h>
#include <kparts/browserextension.h>
#include <KParts/BrowserExtension>
#include <kmimetypetrader.h>
FavIconUpdater::FavIconUpdater(QObject *parent)
......@@ -39,7 +39,6 @@ FavIconUpdater::FavIconUpdater(QObject *parent)
{
m_part = nullptr;
m_webGrabber = nullptr;
m_browserIface = nullptr;
}
void FavIconUpdater::downloadIcon(const KBookmark &bk)
......@@ -64,7 +63,6 @@ void FavIconUpdater::downloadIcon(const KBookmark &bk)
FavIconUpdater::~FavIconUpdater()
{
delete m_browserIface;
delete m_webGrabber;
delete m_part;
}
......@@ -92,10 +90,6 @@ void FavIconUpdater::downloadIconUsingWebBrowser(const KBookmark &bk, const QStr
KParts::BrowserExtension *ext = KParts::BrowserExtension::childObject(part);
Q_ASSERT(ext);
// TODO: what is this useful for?
m_browserIface = new KParts::BrowserInterface(this);
ext->setBrowserInterface(m_browserIface);
connect(ext, &KParts::BrowserExtension::setIconUrl,
this, &FavIconUpdater::setIconUrl);
......
......@@ -21,7 +21,6 @@
#include <kbookmark.h>
#include <kparts/part.h>
#include <kparts/browserinterface.h>
#include <KParts/ReadOnlyPart>
#include <QUrl>
#include <KIO/Job>
......@@ -67,7 +66,6 @@ Q_SIGNALS:
private:
KParts::ReadOnlyPart *m_part;
KParts::BrowserInterface *m_browserIface;
FavIconWebGrabber *m_webGrabber;
KBookmark m_bk;
bool webupdate;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment