mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-30 15:21:16 -03:00
Remove tok_destroy
This commit is contained in:
@@ -404,9 +404,6 @@ static void job_or_process_extent(const wchar_t *buff,
|
||||
}
|
||||
|
||||
free(buffcpy);
|
||||
|
||||
tok_destroy(&tok);
|
||||
|
||||
}
|
||||
|
||||
void parse_util_process_extent(const wchar_t *buff,
|
||||
@@ -517,8 +514,6 @@ void parse_util_token_extent(const wchar_t *buff,
|
||||
|
||||
free(buffcpy);
|
||||
|
||||
tok_destroy(&tok);
|
||||
|
||||
if (tok_begin)
|
||||
{
|
||||
*tok_begin = a;
|
||||
@@ -721,8 +716,6 @@ void parse_util_get_parameter_info(const wcstring &cmd, const size_t pos, wchar_
|
||||
prev_pos = tok_get_pos(&tok);
|
||||
}
|
||||
|
||||
tok_destroy(&tok);
|
||||
|
||||
wchar_t *cmd_tmp = wcsdup(cmd.c_str());
|
||||
cmd_tmp[pos]=0;
|
||||
size_t cmdlen = wcslen(cmd_tmp);
|
||||
|
||||
Reference in New Issue
Block a user