From be7b696cb29d12f551492513bc0a149d611be17b Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 21 Mar 2016 17:00:07 -0400 Subject: [PATCH] [fix] actually that temporary array is unnecessary altogether, eliminating --- src/normalize.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/normalize.c b/src/normalize.c index 18e91c5e..515da8ed 100644 --- a/src/normalize.c +++ b/src/normalize.c @@ -158,8 +158,6 @@ string_tree_t *normalize_string_languages(char *str, uint64_t options, size_t nu ptr += script_len; } - char_array *normalized = char_array_new_size(len); - add_latin_alternatives(tree, str, len, options); size_t non_latin_scripts = kh_size(scripts); @@ -216,8 +214,6 @@ string_tree_t *normalize_string_languages(char *str, uint64_t options, size_t nu } - char_array_destroy(normalized); - kh_destroy(int_set, scripts); string_tree_finalize_token(tree);