summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-24 16:53:07 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-24 16:53:07 (GMT)
commita2d7536689bdeb50780c3f0af7ece6c4488cc1d0 (patch)
tree3ae32ac5bf14760b32cbeda0142a57123d24be47
parent66c05cc0fb18bdfbb4057d029908ea0510226348 (diff)
remove useless API
-rw-r--r--src/utils/kateglobal.cpp4
-rw-r--r--src/utils/kateglobal.h29
2 files changed, 0 insertions, 33 deletions
diff --git a/src/utils/kateglobal.cpp b/src/utils/kateglobal.cpp
index 5d2f456..83cf685 100644
--- a/src/utils/kateglobal.cpp
+++ b/src/utils/kateglobal.cpp
@@ -72,7 +72,6 @@ KTextEditor::EditorPrivate::EditorPrivate(QPointer<KTextEditor::EditorPrivate> &
, m_aboutData(QLatin1String("katepart"), QString(), i18n("Kate Part"), QLatin1String(KTEXTEDITOR_VERSION_STRING),
i18n("Embeddable editor component"), KAboutData::License_LGPL_V2,
i18n("(c) 2000-2014 The Kate Authors"), QString(), QLatin1String("http://kate-editor.org"))
- , m_sessionConfig(KSharedConfig::openConfig())
, m_application(nullptr)
{
// FIXME KF5
@@ -206,9 +205,6 @@ KTextEditor::EditorPrivate::EditorPrivate(QPointer<KTextEditor::EditorPrivate> &
// tap to QApplication object
// TODO: recheck the frameworks, if there is a better way of handling the PaletteChange "signal"
qApp->installEventFilter(this);
-
- //required for setting sessionConfig property
- qRegisterMetaType<KSharedConfig::Ptr>("KSharedConfig::Ptr");
}
KTextEditor::EditorPrivate::~EditorPrivate()
diff --git a/src/utils/kateglobal.h b/src/utils/kateglobal.h
index 162b904..c8b6ff1 100644
--- a/src/utils/kateglobal.h
+++ b/src/utils/kateglobal.h
@@ -52,8 +52,6 @@ class KateSpellCheckManager;
class KateViGlobal;
class KateWordCompletionModel;
-Q_DECLARE_METATYPE(KSharedConfig::Ptr)
-
namespace KTextEditor
{
@@ -72,33 +70,6 @@ class KTEXTEDITOR_EXPORT EditorPrivate : public KTextEditor::Editor, public KTex
friend class KTextEditor::Editor;
-public:
- /**
- * property to tell the editor to use a given session config for session related
- * configuration instead of KSharedConfig::openConfig().
- * MUST be set directly after first creation of the editor as otherwise
- * some parts might not pick this up.
- */
- Q_PROPERTY(KSharedConfig::Ptr sessionConfig READ sessionConfig WRITE setSessionConfig)
-
- /**
- * Get session config, defaults to KSharedConfig::openConfig()
- * @return session config
- */
- KSharedConfig::Ptr sessionConfig()
- {
- return m_sessionConfig;
- }
-
- /**
- * Set session config
- * @param sessionConfig new session config
- */
- void setSessionConfig(KSharedConfig::Ptr sessionConfig)
- {
- m_sessionConfig = sessionConfig;
- }
-
// unit testing
public:
/**