aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Mi <codeminister@publicstatic.de>2014-01-24 14:47:51 (GMT)
committerGregor Mi <codeminister@publicstatic.de>2014-01-24 14:47:51 (GMT)
commitd95f9b016bced2c8687f5a7d65923d7742aa8198 (patch)
treed897a102282499bfd6d30601f396348305447c94
parent37e61d64087158fee24855b0b58cd0b01da44483 (diff)
clean code
-rw-r--r--src/view/katestatusbar.cpp5
-rw-r--r--src/view/kateview.cpp5
-rw-r--r--src/view/kateview.h2
3 files changed, 1 insertions, 11 deletions
diff --git a/src/view/katestatusbar.cpp b/src/view/katestatusbar.cpp
index 90b6566..76c4ac7 100644
--- a/src/view/katestatusbar.cpp
+++ b/src/view/katestatusbar.cpp
@@ -197,10 +197,7 @@ bool KateStatusBar::eventFilter(QObject *obj, QEvent *event)
{
if (obj == m_insertModeLabel) {
if (event->type() == QEvent::MouseButtonDblClick) {
- if (m_view->isViInputMode()) {
- // m_view->toggleViInputMode(); // in VI Input mode: do nothing
- }
- else {
+ if (!m_view->viInputMode()) {
m_view->toggleInsert();
}
return true;
diff --git a/src/view/kateview.cpp b/src/view/kateview.cpp
index 199f6c9..bc3d74c 100644
--- a/src/view/kateview.cpp
+++ b/src/view/kateview.cpp
@@ -1153,11 +1153,6 @@ QString KTextEditor::ViewPrivate::viewMode() const
return currentMode;
}
-bool KTextEditor::ViewPrivate::isViInputMode() const
-{
- return viInputMode();
-}
-
void KTextEditor::ViewPrivate::slotGotFocus()
{
//qCDebug(LOG_PART) << "KTextEditor::ViewPrivate::slotGotFocus";
diff --git a/src/view/kateview.h b/src/view/kateview.h
index de0bcfb..7dc8521 100644
--- a/src/view/kateview.h
+++ b/src/view/kateview.h
@@ -119,8 +119,6 @@ public:
QString viewMode() const;
- bool isViInputMode() const;
-
//
// KTextEditor::ClipboardInterface
//