aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-18 18:16:43 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-18 18:16:43 (GMT)
commitf539e1c80c9191bb3a7409473c14bd713696d98e (patch)
tree0ff99275b775c2782266e29ca55eae3d0df3cb66
parent21b2e007ce6a59d642eddf5add4e46956c620cfc (diff)
remove API not needed any more
-rw-r--r--src/document/katedocument.cpp5
-rw-r--r--src/document/katedocument.h2
-rw-r--r--src/include/ktexteditor/document.h12
-rw-r--r--src/include/ktexteditor/view.h9
-rw-r--r--src/src/ktexteditor.cpp5
5 files changed, 1 insertions, 32 deletions
diff --git a/src/document/katedocument.cpp b/src/document/katedocument.cpp
index 5fa2c00..234fd03 100644
--- a/src/document/katedocument.cpp
+++ b/src/document/katedocument.cpp
@@ -308,11 +308,6 @@ const QList<KTextEditor::View *> &KateDocument::views() const
return m_textEditViews;
}
-KTextEditor::Editor *KateDocument::editor()
-{
- return KateGlobal::self();
-}
-
KTextEditor::Range KateDocument::rangeOnLine(KTextEditor::Range range, int line) const
{
int col1 = toVirtualColumn(range.start());
diff --git a/src/document/katedocument.h b/src/document/katedocument.h
index 0a5ea33..0a93a73 100644
--- a/src/document/katedocument.h
+++ b/src/document/katedocument.h
@@ -119,8 +119,6 @@ public:
virtual bool openUrl(const QUrl &url);
- virtual KTextEditor::Editor *editor();
-
KTextEditor::Range rangeOnLine(KTextEditor::Range range, int line) const;
private:
diff --git a/src/include/ktexteditor/document.h b/src/include/ktexteditor/document.h
index d7759e8..fc664ba 100644
--- a/src/include/ktexteditor/document.h
+++ b/src/include/ktexteditor/document.h
@@ -22,7 +22,7 @@
#define KDELIBS_KTEXTEDITOR_DOCUMENT_H
#include <ktexteditor_export.h>
-// the very important KTextEditor::Cursor class
+
#include <ktexteditor/cursor.h>
#include <ktexteditor/range.h>
@@ -36,7 +36,6 @@
namespace KTextEditor
{
-class Editor;
class View;
class MainWindow;
@@ -143,15 +142,6 @@ public:
*/
public:
/**
- * Get the global editor object. The editor part implementation must
- * ensure that this object exists as long as any factory or document
- * object exists.
- * \return global KTextEditor::Editor object
- * \see KTextEditor::Editor
- */
- virtual Editor *editor() = 0;
-
- /**
* Create a new view attached to @p parent.
* @param parent parent widget
* @param mainWindow the main window responsible for this view, if any
diff --git a/src/include/ktexteditor/view.h b/src/include/ktexteditor/view.h
index 9289690..c159b70 100644
--- a/src/include/ktexteditor/view.h
+++ b/src/include/ktexteditor/view.h
@@ -177,15 +177,6 @@ public:
*/
virtual Document *document() const = 0;
- /**
- * Check whether this view is the document's active view.
- * This is equal to the code:
- * \code
- * document()->activeView() == view
- * \endcode
- */
- bool isActiveView() const;
-
/*
* General information about this view
*/
diff --git a/src/src/ktexteditor.cpp b/src/src/ktexteditor.cpp
index f33c12f..da198f5 100644
--- a/src/src/ktexteditor.cpp
+++ b/src/src/ktexteditor.cpp
@@ -79,11 +79,6 @@ void Editor::setDefaultEncoding(const QString &defaultEncoding)
d->defaultEncoding = defaultEncoding;
}
-bool View::isActiveView() const
-{
- return this == document()->activeView();
-}
-
bool View::insertText(const QString &text)
{
KTextEditor::Document *doc = document();