From 091e73e98f0e2ff711cedb6a94bb740ae2121da7 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Wed, 7 Oct 2009 07:37:47 +0800 Subject: [PATCH] Remove some commented code. --- src/PinyinEngine.cc | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/PinyinEngine.cc b/src/PinyinEngine.cc index 33d1f34..556d651 100644 --- a/src/PinyinEngine.cc +++ b/src/PinyinEngine.cc @@ -833,18 +833,6 @@ PinyinEngine::updateAuxiliaryText (void) // guint cursor_pos; m_buffer.truncate (0); -#if 0 - if (G_UNLIKELY (m_phrase_editor.selectedString ())) { - if (G_LIKELY (m_mode_simp)) - m_buffer << m_phrase_editor.selectedString (); - else - SimpTradConverter::simpToTrad (m_phrase_editor.selectedString (), m_buffer); - } - - if (m_buffer) - m_buffer << ' '; -#endif - for (guint i = m_phrase_editor.cursor (); i < m_pinyin_editor->pinyin().length (); ++i) { if (G_LIKELY (i != m_phrase_editor.cursor ())) m_buffer << ' '; @@ -867,10 +855,6 @@ PinyinEngine::updateAuxiliaryText (void) } StaticText aux_text (m_buffer); - /* - aux_text.appendAttribute (IBUS_ATTR_TYPE_FOREGROUND, 0x00afafaf, len, cursor_pos); - aux_text.appendAttribute (IBUS_ATTR_TYPE_FOREGROUND, 0x00afafaf, cursor_pos + 1, -1); - */ ibus_engine_update_auxiliary_text (m_engine, aux_text, TRUE); } -- 2.7.4