diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2016-09-13 19:29:17 +0200 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2016-09-13 19:29:17 +0200 |
commit | bdadb5fe6f8fcbc76c8fb2c8e2979dd475543146 (patch) | |
tree | 6355158c1be7171fcce19c9eefcfbd90779dae56 | |
parent | d0f553d573a269abc7eef70564141557015cc230 (diff) |
Remove unneeded code
-rw-r--r-- | mxml.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -3,23 +3,6 @@ #include <mxml.h> -mxml_type_t type_cb(mxml_node_t *node) { - const char *type; - - type = mxmlElementGetAttr(node, "type"); - if (type == NULL) - type = mxmlGetElement(node); - - if (!strcmp(type, "integer")) - return (MXML_INTEGER); - else if (!strcmp(type, "opaque")) - return (MXML_OPAQUE) ; - else if (!strcmp(type, "real")) - return (MXML_REAL); - else - return (MXML_TEXT); -} - int process(FILE *f) { mxml_node_t *root, *node, *next; const char* elename; |