]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: rm: remove unused static-inlined functions
authorJoachim Schmitz <jojo@schmitz-digital.de>
Fri, 20 Jul 2012 12:32:53 +0000 (14:32 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 20 Jul 2012 13:05:38 +0000 (15:05 +0200)
* src/remove.c (cache_statted, is_dir_lstat): Remove unused
static-inlined functions.
* THANKS.in: Remove my name from this list, now that (with this
commit) it is included automatically.
Copyright-paperwork-exempt: Yes

THANKS.in
src/remove.c

index 57639d99b91b849de84df85b5dc27540d4067dfa..dc0b9dd955dcdfb0a5507035c4a83fcf678c9072 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
@@ -289,7 +289,6 @@ Jesse Thilo                         jgt2@eecs.lehigh.edu
 Jie Xu                              xuj@iag.net
 Jim Blandy                          jimb@cyclic.com
 Jim Dennis                          jimd@starshine.org
-Joachim Schmitz                     jojo@schmitz-digital.de
 Joakim Rosqvist                     dvljrt@cs.umu.se
 Jochen Hein                         jochen@jochen.org
 Joe Orton                           joe@manyfish.co.uk
index f44a9821b6e5f2d43bbcc444893746be2576c3c7..42f2063486be87cf5c2a9c9c698fc333dbf015f9 100644 (file)
@@ -88,13 +88,6 @@ cache_stat_init (struct stat *st)
   return st;
 }
 
-/* Return true if *ST has been statted.  */
-static inline bool
-cache_statted (struct stat *st)
-{
-  return (st->st_size != -1);
-}
-
 /* Return true if *ST has been statted successfully.  */
 static inline bool
 cache_stat_ok (struct stat *st)
@@ -311,21 +304,6 @@ prompt (FTS const *fts, FTSENT const *ent, bool is_dir,
   return RM_OK;
 }
 
-/* Return true if FILENAME is a directory (and not a symlink to a directory).
-   Otherwise, including the case in which lstat fails, return false.
-   *ST is FILENAME's tstatus.
-   Do not modify errno.  */
-static inline bool
-is_dir_lstat (int fd_cwd, char const *filename, struct stat *st)
-{
-  int saved_errno = errno;
-  bool is_dir =
-    (cache_fstatat (fd_cwd, filename, st, AT_SYMLINK_NOFOLLOW) == 0
-     && S_ISDIR (st->st_mode));
-  errno = saved_errno;
-  return is_dir;
-}
-
 /* Return true if FILENAME is a non-directory.
    Otherwise, including the case in which lstat fails, return false.
    *ST is FILENAME's tstatus.