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, 30 Sep 2012 15:56:24 +0000 (11:56 -0400)
openbox/actions.c
openbox/actions.h

index 3796e857cf6ad843bfda044f784e16cd51829984..1ab1d173e0e8c81a7366612b21efa735fc79e7ea 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.