[fix] actually that temporary array is unnecessary altogether, eliminating

This commit is contained in:
Al
2016-03-21 17:00:07 -04:00
parent e0f7638372
commit be7b696cb2

View File

@@ -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);