From 5f283adc8d1a29f420d466e85b216e9d6f4a9822 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 2 Jul 2021 23:17:06 +0200 Subject: Remove dependency on html tidy --- src/XpathTokenizer.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/XpathTokenizer.c') diff --git a/src/XpathTokenizer.c b/src/XpathTokenizer.c index 32bede9..ae17939 100644 --- a/src/XpathTokenizer.c +++ b/src/XpathTokenizer.c @@ -91,14 +91,3 @@ int quickmedia_xpath_tokenizer_next_if(QuickMediaXpathTokenizer *self, QuickMedi self->code = restore_point; return -1; } - -char* quickmedia_xpath_tokenizer_copy_identifier(QuickMediaXpathTokenizer *self) { - char *result = malloc(self->identifier.size + 1); - result[self->identifier.size] = '\0'; - memcpy(result, self->identifier.data, self->identifier.size); - return result; -} - -char* quickmedia_xpath_tokenizer_copy_string(QuickMediaXpathTokenizer *self) { - return quickmedia_xpath_tokenizer_copy_identifier(self); -} -- cgit v1.2.3