Remove dead code in string_input.c

This commit is contained in:
Max Brunsfeld 2017-12-27 10:23:59 -08:00
parent addeb6c4c1
commit 2625c3a96c

View file

@ -32,9 +32,6 @@ TSInput ts_string_input_make(const char *string) {
TSInput ts_string_input_make_with_length(const char *string, uint32_t length) {
TSStringInput *input = ts_malloc(sizeof(TSStringInput));
if (!input)
goto error;
input->string = string;
input->position = 0;
input->length = length;
@ -44,7 +41,4 @@ TSInput ts_string_input_make_with_length(const char *string, uint32_t length) {
.seek = ts_string_input__seek,
.encoding = TSInputEncodingUTF8,
};
error:
return (TSInput){ NULL, NULL, NULL, TSInputEncodingUTF8 };
}