Mercurial > pidgin
diff src/xmlnode.c @ 10424:108151be77a3
[gaim-migrate @ 11676]
Those 2 helper functions in xmlnode made things less readable...
Lesson #456: Helper functions, while possible saving time, can
hurt you in the long run when they steal your wallet.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 26 Dec 2004 18:58:36 +0000 |
parents | 3232e1a33899 |
children | 9903182f2aac |
line wrap: on
line diff
--- a/src/xmlnode.c Sun Dec 26 18:38:22 2004 +0000 +++ b/src/xmlnode.c Sun Dec 26 18:58:36 2004 +0000 @@ -54,21 +54,6 @@ return new_node(name, XMLNODE_TYPE_TAG); } -xmlnode* -xmlnode_new_with_data(const char *name, const char *data, size_t size) -{ - xmlnode *node; - - g_return_val_if_fail(name != NULL, NULL); - g_return_val_if_fail(data != NULL, NULL); - g_return_val_if_fail(size != 0, NULL); - - node = new_node(name, XMLNODE_TYPE_TAG); - xmlnode_insert_data(node, data, size); - - return node; -} - xmlnode * xmlnode_new_child(xmlnode *parent, const char *name) { @@ -84,25 +69,6 @@ return node; } -xmlnode * -xmlnode_new_child_with_data(xmlnode *parent, const char *name, - const char *data, size_t size) -{ - xmlnode *node; - - g_return_val_if_fail(parent != NULL, NULL); - g_return_val_if_fail(name != NULL, NULL); - g_return_val_if_fail(data != NULL, NULL); - g_return_val_if_fail(size != 0, NULL); - - node = new_node(name, XMLNODE_TYPE_TAG); - xmlnode_insert_data(node, data, size); - - xmlnode_insert_child(parent, node); - - return node; -} - void xmlnode_insert_child(xmlnode *parent, xmlnode *child) {