ximimmodule: remove useless code in preedit_string_get
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 5 Dec 2013 07:00:39 +0000 (16:00 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 5 Dec 2013 07:00:39 +0000 (16:00 +0900)
'cursor_pos' variable will be set in the below code, so 'cursor_pos = 0' is useless.

src/modules/ecore_imf/xim/ecore_imf_xim.c

index da33e3c..5cc763d 100644 (file)
@@ -227,8 +227,6 @@ _ecore_imf_context_xim_preedit_string_get(Ecore_IMF_Context *ctx,
      {
         if (str)
           *str = NULL;
-        if (cursor_pos)
-          *cursor_pos = 0;
      }
 
    if (cursor_pos)