aboutsummaryrefslogtreecommitdiff
path: root/src/xz/util.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-10-25 18:30:55 +0300
committerLasse Collin <lasse.collin@tukaani.org>2022-10-25 18:30:55 +0300
commit8b46ae8cdeddfd7dc01fec92971b8696e9a96c5d (patch)
tree11c755617e662aa047f484f9068c73a8368cd229 /src/xz/util.c
parentxz: If input file cannot be removed, treat it as a warning, not error. (diff)
downloadxz-8b46ae8cdeddfd7dc01fec92971b8696e9a96c5d.tar.xz
xz: Refactor to remove is_empty_filename().
Long ago it was used in list.c too but nowadays it's needed only in io_open_src() so it's nicer to avoid a separate function.
Diffstat (limited to '')
-rw-r--r--src/xz/util.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/xz/util.c b/src/xz/util.c
index a1339f4f..9f9a8fb0 100644
--- a/src/xz/util.c
+++ b/src/xz/util.c
@@ -261,18 +261,6 @@ my_snprintf(char **pos, size_t *left, const char *fmt, ...)
extern bool
-is_empty_filename(const char *filename)
-{
- if (filename[0] == '\0') {
- message_error(_("Empty filename, skipping"));
- return true;
- }
-
- return false;
-}
-
-
-extern bool
is_tty_stdin(void)
{
const bool ret = isatty(STDIN_FILENO);