Commit 54a946b3 authored by Michael Pyne's avatar Michael Pyne
Browse files

Remove dead code from JuK web image fetcher

svn path=/trunk/KDE/kdemultimedia/juk/; revision=933984
parent b0faaf4a
......@@ -181,25 +181,6 @@ void WebImageFetcherDialog::slotCancel()
reject();
}
QPixmap WebImageFetcherDialog::fetchedImage(int index) const
{
return (index > m_imageList.count()) ? QPixmap() : pixmapFromURL(m_imageList[index].imageURL());
}
QPixmap WebImageFetcherDialog::pixmapFromURL(const KUrl &url) const
{
QString file;
if(KIO::NetAccess::download(url, file, 0)) {
QPixmap pixmap = QPixmap(file);
KIO::NetAccess::removeTempFile(file);
return pixmap;
}
KIO::NetAccess::removeTempFile(file);
return QPixmap();
}
////////////////////////////////////////////////////////////////////////////////
// CoverIconViewItem
////////////////////////////////////////////////////////////////////////////////
......
......@@ -64,9 +64,6 @@ protected slots:
void selectedItemIsBad();
private:
QPixmap fetchedImage(int index) const;
QPixmap pixmapFromURL(const KUrl &url) const;
QPixmap m_pixmap;
WebImageList m_imageList;
QListView *m_iconWidget;
......
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