Remove unused tree method
This commit is contained in:
parent
33820253e8
commit
3672a8ad87
2 changed files with 0 additions and 11 deletions
|
|
@ -68,16 +68,6 @@ void ts_tree_array_delete(TreePool *pool, TreeArray *self) {
|
|||
array_delete(self);
|
||||
}
|
||||
|
||||
uint32_t ts_tree_array_essential_count(const TreeArray *self) {
|
||||
uint32_t result = 0;
|
||||
for (uint32_t i = 0; i < self->size; i++) {
|
||||
Tree *tree = self->contents[i];
|
||||
if (!tree->extra && tree->symbol != ts_builtin_sym_error)
|
||||
result++;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
TreeArray ts_tree_array_remove_last_n(TreeArray *self, uint32_t remove_count) {
|
||||
TreeArray result = array_new();
|
||||
if (self->size == 0 || remove_count == 0) return result;
|
||||
|
|
|
|||
|
|
@ -88,7 +88,6 @@ const char *ts_external_token_state_data(const TSExternalTokenState *);
|
|||
|
||||
bool ts_tree_array_copy(TreeArray, TreeArray *);
|
||||
void ts_tree_array_delete(TreePool *, TreeArray *);
|
||||
uint32_t ts_tree_array_essential_count(const TreeArray *);
|
||||
TreeArray ts_tree_array_remove_last_n(TreeArray *, uint32_t);
|
||||
TreeArray ts_tree_array_remove_trailing_extras(TreeArray *);
|
||||
void ts_tree_array_reverse(TreeArray *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue