diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2009-02-18 12:54:16 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2009-02-18 12:54:16 +0800 |
commit | b680ae1c4bcd1ed2ce72ee8e0bfcae4d929be64d (patch) | |
tree | c4dd7dfdb192c12a5ac0f9d611b7f062a0200608 | |
parent | b88b8cecf5c0bbfacad2d0ca24c5af2b4b6a1915 (diff) | |
download | ibus-b680ae1c4bcd1ed2ce72ee8e0bfcae4d929be64d.tar.gz ibus-b680ae1c4bcd1ed2ce72ee8e0bfcae4d929be64d.tar.xz ibus-b680ae1c4bcd1ed2ce72ee8e0bfcae4d929be64d.zip |
Remove unused code in ibusconfig.c
-rw-r--r-- | src/ibusconfig.c | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/src/ibusconfig.c b/src/ibusconfig.c index 9ebc799..16b6d3f 100644 --- a/src/ibusconfig.c +++ b/src/ibusconfig.c @@ -66,90 +66,6 @@ static gboolean ibus_config_ibus_signal (IBusProxy *proxy, static IBusProxyClass *parent_class = NULL; -#if 0 -static BusPair * -bus_pair_new (GType car_type, - GType cdr_type, - gpointer car, - gpointer cdr) -{ - - g_assert (car_type == G_TYPE_STRING || - car_type == G_TYPE_INT || - car_type == G_TYPE_BOOLEAN || - car_type == G_TYPE_DOUBLE); - g_assert (cdr_type == G_TYPE_STRING || - cdr_type == G_TYPE_INT || - cdr_type == G_TYPE_BOOLEAN || - cdr_type == G_TYPE_DOUBLE); - g_assert (car != NULL); - g_assert (cdr != NULL); - - BusPair *pair; - - pair = g_slice_new0 (BusPair); - - g_value_init (&(pair->car), car_type); - g_value_init (&(pair->cdr), cdr_type); - - switch (car_type) { - case G_TYPE_STRING: - g_value_set_string (&(pair->car), *(gchar **)car); - break; - case G_TYPE_INT: - g_value_set_int (&(pair->car), *(gint32 *)car); - break; - case G_TYPE_BOOLEAN: - g_value_set_boolean (&(pair->car), *(gboolean *)car); - break; - case G_TYPE_DOUBLE: - g_value_set_double (&(pair->car), *(gdouble *)car); - break; - } - - switch (cdr_type) { - case G_TYPE_STRING: - g_value_set_string (&(pair->cdr), *(gchar **)cdr); - break; - case G_TYPE_INT: - g_value_set_int (&(pair->cdr), *(gint32 *)car); - break; - case G_TYPE_BOOLEAN: - g_value_set_boolean (&(pair->cdr), *(gboolean *)cdr); - break; - case G_TYPE_DOUBLE: - g_value_set_double (&(pair->cdr), *(gdouble *)cdr); - break; - } - return pair; -} - -static BusPair * -bus_pair_copy (BusPair *pair) -{ - g_assert (pair != NULL); - - BusPair *new_pair; - - new_pair = g_slice_new0 (BusPair); - g_value_copy (&(pair->car), &(new_pair->car)); - g_value_copy (&(pair->cdr), &(new_pair->cdr)); - return new_pair; -} - -static void -bus_pair_free (BusPair *pair) -{ - g_assert (pair == NULL); - - g_value_unset (&(pair->car)); - g_value_unset (&(pair->cdr)); - - g_slice_free (BusPair, pair); -} - -#endif - GType ibus_config_get_type (void) { |