forked from qt-creator/qt-creator
Remove unneeded IEditorFactor::open re-implementations.
Change-Id: I261bc1ee09a2c22155e4874a4429a868d837c256 Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
committed by
David Schulz
parent
9647ce6932
commit
d2571548f8
@@ -56,16 +56,6 @@ QString EditorFactory::displayName() const
|
||||
return tr(Constants::C_EDITOR_DISPLAY_NAME);
|
||||
}
|
||||
|
||||
Core::IDocument *EditorFactory::open(const QString &fileName)
|
||||
{
|
||||
Core::IEditor *iface = Core::EditorManager::instance()->openEditor(fileName, id());
|
||||
if (!iface) {
|
||||
qWarning() << "CEditorFactory::open: openEditor failed for " << fileName;
|
||||
return 0;
|
||||
}
|
||||
return iface->document();
|
||||
}
|
||||
|
||||
Core::IEditor *EditorFactory::createEditor(QWidget *parent)
|
||||
{
|
||||
EditorWidget *widget = new EditorWidget(parent);
|
||||
|
Reference in New Issue
Block a user