@@ -36,7 +36,6 @@ void xml_tag_free(XmlTag tag) {
//g_dataset_destroy(tag->attributes);
//g_free(tag->attributes);
g_free(tag);
- return;
}
// Frees an entire tree of XmlTags
@@ -48,7 +47,6 @@ void xml_tree_free(XmlTag root) {
xml_tree_free(g_array_index(root->children, XmlTag, i));
}
xml_tag_free(root);
- return;
}
void xml_print_tree_helper(XmlTag tag) {
@@ -67,7 +65,6 @@ void xml_print_tree_helper(XmlTag tag) {
xml_print_tree_helper(g_array_index(tag->children, XmlTag, i));
}
depth--;
- return;
}
// Prints the tag tree
@@ -78,7 +75,6 @@ void xml_tree_print(XmlTag tag) {
for (i = 0; i < tag->children->len; i++) {
xml_print_tree_helper(g_array_index(tag->children, XmlTag, i));
}
- return;
}
// Strips whitespace from a GString
@@ -119,7 +115,6 @@ int g_string_strip(GString *string) {
// * col: the column at which the error occurred
void xml_error(const char *message, unsigned int line, int col) {
printf("ERROR (%u,%d): %s\n", line, col + g_string_strip(NULL) + 1, message);
- return;
}
// Checks a tag for validity
@@ -141,7 +136,6 @@ gboolean xml_tag_check(XmlTag tag, int line, int col) {
// This will parse the tagname to extract attributes from it
void xml_tag_parse_attributes(XmlTag tag) {
- return;
}
// Parses an XML file