Remove dead code in string_input.c
This commit is contained in:
parent
addeb6c4c1
commit
2625c3a96c
1 changed files with 0 additions and 6 deletions
|
|
@ -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 };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue