[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] pred.c: remove unused code
From: |
Bernhard Voelker |
Subject: |
[PATCH] pred.c: remove unused code |
Date: |
Tue, 5 Jan 2021 18:46:14 +0100 |
* find/pred.c (struct pred_assoc): Remove.
(pred_table): Remove.
---
find/pred.c | 69 -----------------------------------------------------
1 file changed, 69 deletions(-)
diff --git a/find/pred.c b/find/pred.c
index 1b1de8de..07572608 100644
--- a/find/pred.c
+++ b/find/pred.c
@@ -63,75 +63,6 @@
static bool match_lname (const char *pathname, struct stat *stat_buf, struct
predicate *pred_ptr, bool ignore_case);
-struct pred_assoc
-{
- PRED_FUNC pred_func;
- const char *pred_name;
-};
-
-struct pred_assoc pred_table[] =
-{
- {pred_amin, "amin "},
- {pred_and, "and "},
- {pred_anewer, "anewer "},
- {pred_atime, "atime "},
- {pred_closeparen, ") "},
- {pred_cmin, "cmin "},
- {pred_cnewer, "cnewer "},
- {pred_comma, ", "},
- {pred_ctime, "ctime "},
- {pred_delete, "delete "},
- {pred_empty, "empty "},
- {pred_exec, "exec "},
- {pred_execdir, "execdir "},
- {pred_executable, "executable "},
- {pred_false, "false "},
- {pred_fprint, "fprint "},
- {pred_fprint0, "fprint0 "},
- {pred_fprintf, "fprintf "},
- {pred_fstype, "fstype "},
- {pred_gid, "gid "},
- {pred_group, "group "},
- {pred_ilname, "ilname "},
- {pred_iname, "iname "},
- {pred_inum, "inum "},
- {pred_ipath, "ipath "},
- {pred_links, "links "},
- {pred_lname, "lname "},
- {pred_ls, "ls "},
- {pred_mmin, "mmin "},
- {pred_mtime, "mtime "},
- {pred_name, "name "},
- {pred_negate, "not "},
- {pred_newer, "newer "},
- {pred_newerXY, "newerXY "},
- {pred_nogroup, "nogroup "},
- {pred_nouser, "nouser "},
- {pred_ok, "ok "},
- {pred_okdir, "okdir "},
- {pred_openparen, "( "},
- {pred_or, "or "},
- {pred_path, "path "},
- {pred_perm, "perm "},
- {pred_print, "print "},
- {pred_print0, "print0 "},
- {pred_prune, "prune "},
- {pred_quit, "quit "},
- {pred_readable, "readable "},
- {pred_regex, "regex "},
- {pred_samefile,"samefile "},
- {pred_size, "size "},
- {pred_true, "true "},
- {pred_type, "type "},
- {pred_uid, "uid "},
- {pred_used, "used "},
- {pred_user, "user "},
- {pred_writable, "writable "},
- {pred_xtype, "xtype "},
- {pred_context, "context"},
- {0, "none "}
-};
-
/* Returns ts1 - ts2 */
static double ts_difference (struct timespec ts1,
struct timespec ts2)
--
2.29.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] pred.c: remove unused code,
Bernhard Voelker <=