From ec00ad771d0e9019152adff6256a36c8620f1fd1 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sun, 15 Jun 2025 22:40:43 +0200 Subject: [PATCH] helpers: remove existss, unused internal function --- src/shared/helpers.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/shared/helpers.h b/src/shared/helpers.h index 3b6691a1..6d233a35 100644 --- a/src/shared/helpers.h +++ b/src/shared/helpers.h @@ -124,13 +124,6 @@ RC_UNUSED static const char *basename_c(const char *path) return (path); } -RC_UNUSED static bool existss(const char *pathname) -{ - struct stat buf; - - return (stat(pathname, &buf) == 0 && buf.st_size != 0); -} - RC_UNUSED static FILE *do_fopenat(int dirfd, const char *pathname, int mode) { int fd = openat(dirfd, pathname, mode, 0666);