From bdd82fa7977570160523cdce907f1b5d2c786359 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 17 Jan 2023 09:37:04 -0800 Subject: [PATCH] ; * src/treesit.c: Remove unused boilerplate. These two functions are not used after 7c61a304104. --- src/treesit.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/treesit.c b/src/treesit.c index 644d323d5cb..917db582676 100644 --- a/src/treesit.c +++ b/src/treesit.c @@ -42,8 +42,6 @@ along with GNU Emacs. If not, see . */ #undef ts_node_end_byte #undef ts_node_eq #undef ts_node_field_name_for_child -#undef ts_node_first_child_for_byte -#undef ts_node_first_named_child_for_byte #undef ts_node_has_error #undef ts_node_is_extra #undef ts_node_is_missing @@ -99,8 +97,6 @@ DEF_DLL_FN (TSNode, ts_node_descendant_for_byte_range, DEF_DLL_FN (uint32_t, ts_node_end_byte, (TSNode)); DEF_DLL_FN (bool, ts_node_eq, (TSNode, TSNode)); DEF_DLL_FN (const char *, ts_node_field_name_for_child, (TSNode, uint32_t)); -DEF_DLL_FN (TSNode, ts_node_first_child_for_byte, (TSNode, uint32_t)); -DEF_DLL_FN (TSNode, ts_node_first_named_child_for_byte, (TSNode, uint32_t)); DEF_DLL_FN (bool, ts_node_has_error, (TSNode)); DEF_DLL_FN (bool, ts_node_is_extra, (TSNode)); DEF_DLL_FN (bool, ts_node_is_missing, (TSNode)); @@ -174,8 +170,6 @@ init_treesit_functions (void) LOAD_DLL_FN (library, ts_node_end_byte); LOAD_DLL_FN (library, ts_node_eq); LOAD_DLL_FN (library, ts_node_field_name_for_child); - LOAD_DLL_FN (library, ts_node_first_child_for_byte); - LOAD_DLL_FN (library, ts_node_first_named_child_for_byte); LOAD_DLL_FN (library, ts_node_has_error); LOAD_DLL_FN (library, ts_node_is_extra); LOAD_DLL_FN (library, ts_node_is_missing); @@ -232,8 +226,6 @@ init_treesit_functions (void) #define ts_node_end_byte fn_ts_node_end_byte #define ts_node_eq fn_ts_node_eq #define ts_node_field_name_for_child fn_ts_node_field_name_for_child -#define ts_node_first_child_for_byte fn_ts_node_first_child_for_byte -#define ts_node_first_named_child_for_byte fn_ts_node_first_named_child_for_byte #define ts_node_has_error fn_ts_node_has_error #define ts_node_is_extra fn_ts_node_is_extra #define ts_node_is_missing fn_ts_node_is_missing -- 2.39.2