diff --git a/moo/mooedit/mooeditaction-factory.c b/moo/mooedit/mooeditaction-factory.c index d3c8764b..769bae7f 100644 --- a/moo/mooedit/mooeditaction-factory.c +++ b/moo/mooedit/mooeditaction-factory.c @@ -38,8 +38,6 @@ static void moo_edit_class_new_action_custom (MooEditClass *klass, gpointer data, GDestroyNotify notify); -static void moo_edit_action_check_state (MooEditAction *action); - #define MOO_EDIT_ACTIONS_QUARK (moo_edit_get_actions_quark ()) @@ -564,20 +562,6 @@ _moo_edit_add_class_actions (MooEdit *edit) } -void -_moo_edit_check_actions (MooEdit *edit) -{ - GList *actions = moo_action_collection_list_actions (edit->priv->actions); - - while (actions) - { - if (MOO_IS_EDIT_ACTION (actions->data)) - moo_edit_action_check_state (actions->data); - actions = g_list_delete_link (actions, actions); - } -} - - void _moo_edit_class_init_actions (MooEditClass *klass) { @@ -628,12 +612,3 @@ _moo_edit_class_init_actions (MooEditClass *klass) "condition::sensitive", "has-text", NULL); } - - -static void -moo_edit_action_check_state (MooEditAction *action) -{ - g_return_if_fail (MOO_IS_EDIT_ACTION (action)); - g_return_if_fail (MOO_EDIT_ACTION_GET_CLASS (action)->check_state != NULL); - MOO_EDIT_ACTION_GET_CLASS (action)->check_state (action); -}