From b6aee4b77d9e2ead7c9c69ef9f35e5c9a31638ba Mon Sep 17 00:00:00 2001 From: dozn <16659513+dozn@users.noreply.github.com> Date: Tue, 11 Feb 2025 06:42:04 -0800 Subject: [PATCH] [core:flags] Remove Unused `allocator` Parameter --- core/flags/util.odin | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/flags/util.odin b/core/flags/util.odin index f1bd60e75dd..f785f86f5fc 100644 --- a/core/flags/util.odin +++ b/core/flags/util.odin @@ -8,15 +8,12 @@ import "core:strings" /* Parse any arguments into an annotated struct or exit if there was an error. -*Allocates Using Provided Allocator* - This is a convenience wrapper over `parse` and `print_errors`. Inputs: - model: A pointer to an annotated struct. - program_args: A slice of strings, usually `os.args`. - style: The argument parsing style. -- allocator: (default: context.allocator) - loc: The caller location for debugging purposes (default: #caller_location) */ @(optimization_mode="favor_size") @@ -24,7 +21,6 @@ parse_or_exit :: proc( model: ^$T, program_args: []string, style: Parsing_Style = .Odin, - allocator := context.allocator, loc := #caller_location, ) { assert(len(program_args) > 0, "Program arguments slice is empty.", loc)