[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [ktexteditor] src/vimode: Dead code--
From:       Simon St James <kdedevel () etotheipiplusone ! com>
Date:       2016-06-17 8:18:10
Message-ID: E1bDoyg-0002ZN-Ca () scm ! kde ! org
[Download RAW message or body]

Git commit def118de252843451b16b190cf6840863aeac10b by Simon St James.
Committed on 17/06/2016 at 08:14.
Pushed by sstjames into branch 'master'.

Dead code--

M  +0    -8    src/vimode/emulatedcommandbar.cpp

http://commits.kde.org/ktexteditor/def118de252843451b16b190cf6840863aeac10b

diff --git a/src/vimode/emulatedcommandbar.cpp b/src/vimode/emulatedcommandbar.cpp
index aafaf87..3bb88d9 100644
--- a/src/vimode/emulatedcommandbar.cpp
+++ b/src/vimode/emulatedcommandbar.cpp
@@ -1452,14 +1452,6 @@ int EmulatedCommandBar::CommandMode::commandBeforeCursorBegin()
     return commandBeforeCursorBegin;
 }
 
-void EmulatedCommandBar::CommandMode::replaceCommandBeforeCursorWith ( const QString& newCommand )
-{
-    const QString newText = m_edit->text().left(commandBeforeCursorBegin()) +
-                            newCommand +
-                            m_edit->text().mid(m_edit->cursorPosition());
-    m_edit->setText(newText);
-}
-
 EmulatedCommandBar::CompletionStartParams EmulatedCommandBar::CommandMode::activateCommandCompletion()
 {
     return CompletionStartParams::createModeSpecific(m_cmdCompletion.items(), commandBeforeCursorBegin());

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic