Clean up code
authorPeng Huang <shawn.p.huang@gmail.com>
Thu, 11 Feb 2010 05:34:41 +0000 (13:34 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Thu, 11 Feb 2010 05:34:41 +0000 (13:34 +0800)
src/PinyinEditor.cc
src/PinyinEngine.h

index a6a1bd4..5a191a5 100644 (file)
@@ -302,7 +302,7 @@ PinyinEditor::updatePreeditText (void)
         updatePreeditTextInEditingMode ();
 }
 
-void
+inline void
 PinyinEditor::updatePreeditTextInTypingMode (void)
 {
     m_buffer.truncate (0);
@@ -357,7 +357,7 @@ PinyinEditor::updatePreeditTextInTypingMode (void)
     Editor::updatePreeditText (preedit_text, candidate_begin, TRUE);
 }
 
-void
+inline void
 PinyinEditor::updatePreeditTextInEditingMode (void)
 {
     m_buffer.truncate (0);
index f057278..7786c16 100644 (file)
@@ -49,15 +49,7 @@ private:
     gboolean processPunct (guint keyval, guint keycode, guint modifiers);
 
 private:
-    void commit (void);
-    void commit (gchar ch);
-    void commit (gunichar ch);
-    void commit (const gchar *str);
-    void commit (const String &str);
-
     void showSetupDialog (void);
-
-
     void connectEditorSignals (Editor *editor);
 
 private: