Commit 456a56bc authored by Eike Ziller's avatar Eike Ziller

Remove unused methods from EditorManager and related classes

Change-Id: If8b9e6cf07e39ea473b80de13c4be9dce6c2ce2e
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 33c0570c
......@@ -553,11 +553,6 @@ Core::Internal::SplitterOrView *EditorManager::currentSplitterOrView() const
return view;
}
Core::Internal::SplitterOrView *EditorManager::topSplitterOrView() const
{
return d->m_splitter;
}
Core::Internal::EditorView *EditorManager::currentEditorView() const
{
return currentSplitterOrView()->view();
......
......@@ -258,7 +258,6 @@ private:
IEditor *openEditor(Internal::EditorView *view, const QString &fileName,
const Id &id = Id(), OpenEditorFlags flags = 0, bool *newEditor = 0);
Internal::SplitterOrView *currentSplitterOrView() const;
Internal::SplitterOrView *topSplitterOrView() const;
void closeEditor(IEditor *editor);
void closeDuplicate(IEditor *editor);
......
......@@ -514,21 +514,6 @@ SplitterOrView *SplitterOrView::findFirstView()
return this;
}
SplitterOrView *SplitterOrView::findEmptyView()
{
if (m_splitter) {
for (int i = 0; i < m_splitter->count(); ++i) {
if (SplitterOrView *splitterOrView = qobject_cast<SplitterOrView*>(m_splitter->widget(i)))
if (SplitterOrView *result = splitterOrView->findEmptyView())
return result;
}
return 0;
}
if (!hasEditors())
return this;
return 0;
}
SplitterOrView *SplitterOrView::findView(Core::IEditor *editor)
{
if (!editor || hasEditor(editor))
......@@ -543,21 +528,6 @@ SplitterOrView *SplitterOrView::findView(Core::IEditor *editor)
return 0;
}
SplitterOrView *SplitterOrView::findSplitter(Core::IEditor *editor)
{
if (m_splitter) {
for (int i = 0; i < m_splitter->count(); ++i) {
if (SplitterOrView *splitterOrView = qobject_cast<SplitterOrView*>(m_splitter->widget(i))) {
if (splitterOrView->hasEditor(editor))
return this;
if (SplitterOrView *result = splitterOrView->findSplitter(editor))
return result;
}
}
}
return 0;
}
SplitterOrView *SplitterOrView::findSplitter(SplitterOrView *child)
{
if (m_splitter) {
......
......@@ -182,8 +182,6 @@ public:
SplitterOrView *findView(Core::IEditor *editor);
SplitterOrView *findFirstView();
SplitterOrView *findEmptyView();
SplitterOrView *findSplitter(Core::IEditor *editor);
SplitterOrView *findSplitter(SplitterOrView *child);
SplitterOrView *findNextView(SplitterOrView *view);
......
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