diff options
author | Kevin Newton <[email protected]> | 2024-06-05 13:47:00 -0400 |
---|---|---|
committer | Kevin Newton <[email protected]> | 2024-06-05 14:40:03 -0400 |
commit | ac70dd07e68384bf5e271dae7e8f08e7a64df1a1 (patch) | |
tree | a3ac3a792fdfa2a97d6c91f3b2642803dac23b02 /prism/util/pm_string_list.h | |
parent | ad438623e8f4e90b7d6567c6c552be89d080dcca (diff) |
[ruby/prism] Remove unused string list struct
https://github.com/ruby/prism/commit/36c6851c85
Diffstat (limited to 'prism/util/pm_string_list.h')
-rw-r--r-- | prism/util/pm_string_list.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/prism/util/pm_string_list.h b/prism/util/pm_string_list.h deleted file mode 100644 index 0d406cc5d8..0000000000 --- a/prism/util/pm_string_list.h +++ /dev/null @@ -1,44 +0,0 @@ -/** - * @file pm_string_list.h - * - * A list of strings. - */ -#ifndef PRISM_STRING_LIST_H -#define PRISM_STRING_LIST_H - -#include "prism/defines.h" -#include "prism/util/pm_string.h" - -#include <stddef.h> -#include <stdlib.h> - -/** - * A list of strings. - */ -typedef struct { - /** The length of the string list. */ - size_t length; - - /** The capacity of the string list that has been allocated. */ - size_t capacity; - - /** A pointer to the start of the string list. */ - pm_string_t *strings; -} pm_string_list_t; - -/** - * Append a pm_string_t to the given string list. - * - * @param string_list The string list to append to. - * @param string The string to append. - */ -void pm_string_list_append(pm_string_list_t *string_list, pm_string_t *string); - -/** - * Free the memory associated with the string list. - * - * @param string_list The string list to free. - */ -PRISM_EXPORTED_FUNCTION void pm_string_list_free(pm_string_list_t *string_list); - -#endif |