Rename function and remove unused code.
authorHuang Peng <shawn.p.huang@gmail.com>
Sat, 6 Sep 2008 02:12:58 +0000 (10:12 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Sat, 6 Sep 2008 02:12:58 +0000 (10:12 +0800)
lib/gtk2/ibusimclient.c

index 7d871fb43e95ee88aa8b3850aa717d5825197d5c..343dd0f042f891bb3e273b3f1da201670ddb26fc 100644 (file)
@@ -98,7 +98,7 @@ static void     ibus_im_client_class_init   (IBusIMClientClass  *klass);
 static void     ibus_im_client_init         (IBusIMClient       *client);
 static void     ibus_im_client_finalize     (GObject            *obj);
 
-static void     _keymap_find_japan_group    (IBusIMClient       *client);
+static void     _keymap_find_japan_groups   (IBusIMClient       *client);
 static void     _keymap_find_yen_bar_keys   (IBusIMClient       *client);
 static void     _keymap_keys_changed_cb     (GdkKeymap          *keymap,
                                              IBusIMClient       *client);
@@ -551,14 +551,9 @@ ibus_im_client_init (IBusIMClient *obj)
 
     if ((priv->keymap = gdk_keymap_get_default ()) != NULL) {
         g_object_ref (priv->keymap);
-        _keymap_find_japan_group (client);
+        _keymap_find_japan_groups (client);
         _keymap_find_yen_bar_keys (client);
 
-        int i;
-        for (i = 0; i < client->priv->japan_yen_bar_keys->len; i++) {
-            GdkKeymapKey *key = &g_array_index (client->priv->japan_yen_bar_keys, GdkKeymapKey, i);
-        }
-
         priv->keymap_handler_id =
             g_signal_connect (priv->keymap, "keys-changed",
                 G_CALLBACK (_keymap_keys_changed_cb), client);
@@ -839,7 +834,7 @@ ibus_im_client_get_connected (IBusIMClient *client)
 }
 
 static void
-_keymap_find_japan_group (IBusIMClient *client)
+_keymap_find_japan_groups (IBusIMClient *client)
 {
 
 #ifdef HAVE_XKB
@@ -973,7 +968,7 @@ _keymap_find_yen_bar_keys (IBusIMClient *client)
 static void
 _keymap_keys_changed_cb (GdkKeymap *keymap, IBusIMClient *client)
 {
-    _keymap_find_japan_group (client);
+    _keymap_find_japan_groups (client);
     _keymap_find_yen_bar_keys (client);
 }