summaryrefslogtreecommitdiff
path: root/prism/node.h
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2023-10-31 11:44:24 -0400
committerKevin Newton <[email protected]>2023-11-01 13:10:29 -0400
commitb12c795bdc49ae2c925b1476fc1d46800ac45fb7 (patch)
treea743298f575c0ec5c6039fdb9ec487091b6f9385 /prism/node.h
parentf791db4433dcad178ee77c58c08f9c38e08a452f (diff)
[ruby/prism] Remove unnecessary PM_EMPTY_NODE_LIST
https://github.com/ruby/prism/commit/857f72e1f4
Diffstat (limited to 'prism/node.h')
-rw-r--r--prism/node.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/prism/node.h b/prism/node.h
index 71b364046a..5a6fcf3d25 100644
--- a/prism/node.h
+++ b/prism/node.h
@@ -7,9 +7,6 @@
// Append a new node onto the end of the node list.
void pm_node_list_append(pm_node_list_t *list, pm_node_t *node);
-// Clear the node but preserves the location.
-void pm_node_clear(pm_node_t *node);
-
// Deallocate a node and all of its children.
PRISM_EXPORTED_FUNCTION void pm_node_destroy(pm_parser_t *parser, struct pm_node *node);
@@ -27,6 +24,4 @@ PRISM_EXPORTED_FUNCTION void pm_node_memsize(pm_node_t *node, pm_memsize_t *mems
// Returns a string representation of the given node type.
PRISM_EXPORTED_FUNCTION const char * pm_node_type_to_str(pm_node_type_t node_type);
-#define PM_EMPTY_NODE_LIST ((pm_node_list_t) { .nodes = NULL, .size = 0, .capacity = 0 })
-
#endif // PRISM_NODE_H