jihoon pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8c819cf214a5e2176a53a1d2df57477bae8b1c4c

commit 8c819cf214a5e2176a53a1d2df57477bae8b1c4c
Author: Jihoon Kim <[email protected]>
Date:   Fri Jan 3 16:23:50 2014 +0900

    scimimmodule: remove unused code
    
    need_commit_preedit was always false, so those code are useless.
---
 src/modules/ecore_imf/scim/scim_imcontext.cpp | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/src/modules/ecore_imf/scim/scim_imcontext.cpp 
b/src/modules/ecore_imf/scim/scim_imcontext.cpp
index 88ca99a..fdf228c 100644
--- a/src/modules/ecore_imf/scim/scim_imcontext.cpp
+++ b/src/modules/ecore_imf/scim/scim_imcontext.cpp
@@ -51,7 +51,6 @@ struct _EcoreIMFContextISFImpl
     bool                     shared_si;
     bool                     preedit_started;
     bool                     preedit_updating;
-    bool                     need_commit_preedit;
     bool                     prediction_allow;
 
     EcoreIMFContextISFImpl  *next;
@@ -556,7 +555,6 @@ isf_imf_context_add(Ecore_IMF_Context *ctx)
    context_scim->impl->use_preedit         = _on_the_spot;
    context_scim->impl->preedit_started     = false;
    context_scim->impl->preedit_updating    = false;
-   context_scim->impl->need_commit_preedit = false;
 
    if (!_ic_list)
      context_scim->next = NULL;
@@ -724,17 +722,6 @@ isf_imf_context_reset(Ecore_IMF_Context *ctx)
    _panel_client.prepare(context_scim->id);
    context_scim->impl->si->reset();
    _panel_client.send();
-
-   if (context_scim->impl->need_commit_preedit)
-     {
-        if (wstr.length())
-          {
-             ecore_imf_context_commit_event_add(context_scim->ctx, 
utf8_wcstombs(wstr).c_str());
-             ecore_imf_context_event_callback_call(context_scim->ctx, 
ECORE_IMF_CALLBACK_COMMIT, (void *)utf8_wcstombs(wstr).c_str());
-          }
-        _panel_client.prepare(context_scim->id);
-        _panel_client.send();
-     }
 }
 
 /**
@@ -869,17 +856,6 @@ isf_imf_context_focus_out(Ecore_IMF_Context *ctx)
      {
         WideString wstr = context_scim->impl->preedit_string;
 
-        if (context_scim->impl->need_commit_preedit)
-          {
-             if (wstr.length())
-               {
-                  ecore_imf_context_commit_event_add(context_scim->ctx, 
utf8_wcstombs(wstr).c_str());
-                  ecore_imf_context_event_callback_call(context_scim->ctx, 
ECORE_IMF_CALLBACK_COMMIT, (void *)utf8_wcstombs(wstr).c_str());
-               }
-             _panel_client.prepare(context_scim->id);
-             _panel_client.send();
-          }
-
         _panel_client.prepare(context_scim->id);
         context_scim->impl->si->focus_out();
         context_scim->impl->si->reset();

-- 


Reply via email to