Commit e73002ea authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

Remove dead, commented out code.

parent 3f14f063
......@@ -129,17 +129,6 @@ void MainWindow::dragMoveEvent(QDragMoveEvent * event)
bool MainWindow::loadPart()
{
// KPluginLoader loader(QLatin1String( "arkpart" ));
// KPluginFactory *factory = loader.factory();
// if (factory) {
// m_part = static_cast<KParts::ReadWritePart*>(factory->create<KParts::ReadWritePart>(this));
// }
// if (!factory || !m_part) {
// KMessageBox::error(this, i18n("Unable to find Ark's KPart component, please check your installation."));
// qWarning() << "Error loading Ark KPart: " << loader.errorString();
// return false;
// }
KPluginFactory *factory = 0;
KService::Ptr service = KService::serviceByDesktopName(QLatin1String("ark_part"));
......@@ -155,7 +144,6 @@ bool MainWindow::loadPart()
return false;
}
m_part->setObjectName( QLatin1String("ArkPart" ));
setCentralWidget(m_part->widget());
createGUI(m_part);
......
......@@ -105,7 +105,7 @@ Archive *Archive::create(const QString &fileName, const QString &fixedMimeType,
}
const QString pluginName = offers.first()->library();
qCDebug(KERFUFFLE) << "Loading plugin" << pluginName; // << "for" << offers.first()->mimeTypes();
qCDebug(KERFUFFLE) << "Loading plugin" << pluginName;
KPluginFactory * const factory = KPluginLoader(pluginName).factory();
if (!factory) {
......
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