nooc

nooc programming language compiler
git clone git://git.nihaljere.xyz/nooc
Log | Files | Refs | LICENSE

commit 5c8ed5dbe722b706e462c26396a9b3484ec15234
parent e69da648bad3180ae7cf05fa079f27e5534c673d
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Sun, 26 Dec 2021 21:58:12 -0600

parse: remove unused function findparam

Diffstat:
Mparse.c | 14--------------
1 file changed, 0 insertions(+), 14 deletions(-)

diff --git a/parse.c b/parse.c @@ -41,20 +41,6 @@ finddecl(struct slice s) return NULL; } -struct nametype * -findparam(struct nametypes *params, struct slice s) -{ - struct nametype *param; - for (int i = 0; i < params->len; i++) { - param = &(params->data[i]); - if (slice_cmp(&s, &param->name) == 0) { - return param; - } - } - - return NULL; -} - static void expect(enum tokentype type) {