cally: Cleaning CallyText
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 6 Jul 2010 11:28:38 +0000 (13:28 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 7 Jul 2010 13:48:00 +0000 (15:48 +0200)
  * Removing superfluous g_return_if_fail
  * Removing unused ClutterText::text-changed callback

clutter/cally/cally-text.c

index 008613a..066c546 100644 (file)
@@ -136,8 +136,6 @@ static AtkAttributeSet*      cally_text_get_run_attributes       (AtkText *text,
 static void                  _cally_text_get_selection_bounds    (ClutterText *clutter_text,
                                                                   gint        *start_offset,
                                                                   gint        *end_offset);
-static void                  _cally_text_text_changed_cb         (ClutterText *clutter_text,
-                                                                  gpointer     data);
 static void                  _cally_text_insert_text_cb          (ClutterText *clutter_text,
                                                                   gchar       *new_text,
                                                                   gint         new_text_length,
@@ -306,9 +304,6 @@ cally_text_real_initialize(AtkObject *obj,
   cally_text->priv->cursor_position = clutter_text_get_cursor_position (clutter_text);
   cally_text->priv->selection_bound = clutter_text_get_selection_bound (clutter_text);
 
-  g_signal_connect (clutter_text, "text-changed",
-                    G_CALLBACK (_cally_text_text_changed_cb),
-                    cally_text);
   g_signal_connect (clutter_text, "insert-text",
                     G_CALLBACK (_cally_text_insert_text_cb),
                     cally_text);
@@ -401,8 +396,6 @@ cally_text_get_text (AtkText *text,
 {
   ClutterActor *actor = NULL;
 
-  g_return_val_if_fail (CALLY_IS_TEXT (text), NULL);
-
   actor = CALLY_GET_CLUTTER_ACTOR (text);
   if (actor == NULL) /* Object is defunct */
     return NULL;
@@ -764,17 +757,6 @@ _cally_text_get_selection_bounds   (ClutterText *clutter_text,
 }
 
 static void
-_cally_text_text_changed_cb (ClutterText *clutter_text,
-                             gpointer data)
-{
-  CallyText *cally_text = NULL;
-
-  g_return_if_fail (CALLY_IS_TEXT (data));
-
-  cally_text = CALLY_TEXT (data);
-}
-
-static void
 _cally_text_delete_text_cb (ClutterText *clutter_text,
                             gint         start_pos,
                             gint         end_pos,