From 5f908033e68f6f3e03f2c38f4c396a0eab77ed05 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 10 Oct 2020 08:39:24 +0200 Subject: Norming lexer --- src/lexer/tok_lst.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'src/lexer/tok_lst.c') diff --git a/src/lexer/tok_lst.c b/src/lexer/tok_lst.c index 89ab120..ac8ca4a 100644 --- a/src/lexer/tok_lst.c +++ b/src/lexer/tok_lst.c @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/08/27 09:32:58 by charles #+# #+# */ -/* Updated: 2020/10/09 15:14:38 by cacharle ### ########.fr */ +/* Updated: 2020/10/10 08:15:34 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -45,11 +45,6 @@ t_tok_lst *tok_lst_new_until( return (ret); } -void tok_lst_push_back(t_tok_lst **tokens, t_tok_lst *pushed) -{ - ft_lstpush_back((t_ftlst**)tokens, (t_ftlst*)pushed); -} - t_tok_lst *tok_lst_push_front( t_tok_lst **tokens, t_tok_lst *pushed) { @@ -59,23 +54,6 @@ t_tok_lst *tok_lst_push_front( return (*tokens); } -void tok_lst_pop_front( - t_tok_lst **tokens, void (*del)(void*)) -{ - ft_lstpop_front((t_ftlst**)tokens, del); -} - -void *tok_lst_destroy(t_tok_lst **tokens, void (*del)(void*)) -{ - ft_lstdestroy((t_ftlst**)tokens, del); - return (NULL); -} - -t_tok_lst *tok_lst_last(t_tok_lst *tokens) -{ - return ((t_tok_lst*)ft_lstlast((t_ftlst*)tokens)); -} - t_tok_lst *tok_lst_uncons(t_tok_lst **tokens) { t_tok_lst *poped; -- cgit