[prev in list] [next in list] [prev in thread] [next in thread]
List: tar-bug
Subject: [Bug-tar] [PATCH] tar: remove unused function dir_removed_diag
From: Paul Eggert <eggert () cs ! ucla ! edu>
Date: 2010-11-24 2:01:23
Message-ID: 4CEC71F3.80707 () cs ! ucla ! edu
[Download RAW message or body]
I pushed this obvious minor cleanup.
* src/common.h (dir_removed_diag): Remove unused decl.
* src/misc.c (dir_removed_diag): Remove unused function.
---
src/common.h | 2 --
src/misc.c | 15 ---------------
2 files changed, 0 insertions(+), 17 deletions(-)
diff --git a/src/common.h b/src/common.h
index 9444fd7..0b9bd7a 100644
--- a/src/common.h
+++ b/src/common.h
@@ -632,8 +632,6 @@ void seek_diag_details (char const *name, off_t offset);
void stat_diag (char const *name);
void file_removed_diag (const char *name, bool top_level,
void (*diagfn) (char const *name));
-void dir_removed_diag (char const *name, bool top_level,
- void (*diagfn) (char const *name));
void write_error_details (char const *name, size_t status, size_t size);
void write_fatal (char const *name) __attribute__ ((noreturn));
void write_fatal_details (char const *name, ssize_t status, size_t size)
diff --git a/src/misc.c b/src/misc.c
index cb12947..adc9298 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -857,21 +857,6 @@ file_removed_diag (const char *name, bool top_level,
}
void
-dir_removed_diag (const char *name, bool top_level,
- void (*diagfn) (char const *name))
-{
- if (!top_level && errno == ENOENT)
- {
- WARNOPT (WARN_FILE_REMOVED,
- (0, 0, _("%s: Directory removed before we read it"),
- quotearg_colon (name)));
- set_exit_status (TAREXIT_DIFFERS);
- }
- else
- diagfn (name);
-}
-
-void
write_fatal_details (char const *name, ssize_t status, size_t size)
{
write_error_details (name, status, size);
--
1.7.2
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic