rm the actions_parse* functions which parsed xml actions
authorDana Jansens <danakj@orodu.net>
Thu, 28 Jul 2011 18:05:54 +0000 (14:05 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 22:55:14 +0000 (18:55 -0400)
openbox/actions.c
openbox/actions.h

index 76c7cb507a02e7ab99a6ca08f2542325e2c5be6e..41c0f236ca22364d053405198d9b6f6a4ba2abf8 100644 (file)
@@ -202,56 +202,6 @@ static ObActionsAct* actions_act_find_name(const gchar *name)
     return act;
 }
 
-ObActionsAct* actions_parse_string(const gchar *name)
-{
-    ObActionsAct *act = NULL;
-
-    if ((act = actions_act_find_name(name))) {
-        if (act->def->canbeinteractive) {
-            if (act->def->setup.i)
-                act->options = act->def->setup.i(NULL,
-                                                 &act->i_pre,
-                                                 &act->i_input,
-                                                 &act->i_cancel,
-                                                 &act->i_post);
-        }
-        else {
-            if (act->def->setup.n)
-                act->options = act->def->setup.n(NULL);
-        }
-    }
-                
-
-    return act;
-}
-
-ObActionsAct* actions_parse(xmlNodePtr node)
-{
-    gchar *name;
-    ObActionsAct *act = NULL;
-
-    if (obt_xml_attr_string(node, "name", &name)) {
-        if ((act = actions_act_find_name(name))) {
-            /* there is more stuff to parse here */
-            if (act->def->canbeinteractive) {
-                if (act->def->setup.i)
-                    act->options = act->def->setup.i(NULL,
-                                                     &act->i_pre,
-                                                     &act->i_input,
-                                                     &act->i_cancel,
-                                                     &act->i_post);
-            }
-            else {
-                if (act->def->setup.n)
-                    act->options = act->def->setup.n(NULL);
-            }
-        }
-        g_free(name);
-    }
-
-    return act;
-}
-
 ObActionsAct* actions_act_new(const gchar *name, GHashTable *config)
 {
     ObActionsAct *act = NULL;
index 13846d19fa0f3cb472bc33ead60ac7742a5c7c42..859a1c73a8757417f91d043c92411241e9a25402 100644 (file)
@@ -81,9 +81,6 @@ gboolean actions_register(const gchar *name,
 gboolean actions_set_shutdown(const gchar *name,
                               ObActionsShutdownFunc shutdown);
 
-ObActionsAct* actions_parse(xmlNodePtr node);
-ObActionsAct* actions_parse_string(const gchar *name);
-
 gboolean actions_act_is_interactive(ObActionsAct *act);
 
 /*! Create a new ObActionAct structure.