From 3890ee964eb99f69bab197fcc050d6cc80243305 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 4 Oct 2009 21:09:39 +0000 Subject: [PATCH] Remove dead code and associated comments. This encoded_last_key member was never used. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31520 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 8eaa682c7d..041eaac7bb 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -650,7 +650,7 @@ public: struct GuiApplication::Private { Private(): language_model_(0), global_menubar_(0), - encoded_last_key(0), meta_fake_bit(NoModifier) + meta_fake_bit(NoModifier) { #ifdef Q_WS_WIN /// WMF Mime handler for Windows clipboard. @@ -693,9 +693,6 @@ struct GuiApplication::Private /// delayed FuncRequests std::queue func_request_queue_; - /// the last character added to the key sequence, in UCS4 encoded form - char_type encoded_last_key; - /// KeySequence keyseq; /// @@ -1152,7 +1149,7 @@ docstring GuiApplication::viewStatusMessage() void GuiApplication::handleKeyFunc(FuncCode action) { - char_type c = d->encoded_last_key; + char_type c = 0; if (d->keyseq.length()) c = 0; @@ -1191,10 +1188,6 @@ void GuiApplication::processKeySym(KeySymbol const & keysym, KeyModifier state) return; } - //Encoding const * encoding = lv->documentBufferView()->cursor().getEncoding(); - //encoded_last_key = keysym.getISOEncoded(encoding ? encoding->name() : ""); - // FIXME: encoded_last_key shadows the member variable of the same - // name. Is that intended? char_type encoded_last_key = keysym.getUCSEncoded(); // Do a one-deep top-level lookup for -- 2.39.5