From b85a344c3645d7748eeb4f3e49e15180d16c5882 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 7 Jun 2020 15:15:33 -0400 Subject: Treat -nohidden like -exclude -hidden Fixes #30. --- eval.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 41e0377..ed1ab55 100644 --- a/eval.c +++ b/eval.c @@ -448,18 +448,6 @@ bool eval_hidden(const struct expr *expr, struct eval_state *state) { return ftwbuf->nameoff > 0 && ftwbuf->path[ftwbuf->nameoff] == '.'; } -/** - * -nohidden action. - */ -bool eval_nohidden(const struct expr *expr, struct eval_state *state) { - if (eval_hidden(expr, state)) { - eval_prune(expr, state); - return false; - } else { - return true; - } -} - /** * -inum test. */ -- cgit v1.2.3