summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ibusconfig.c84
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)
{