helpers: remove existss, unused internal function

This commit is contained in:
Anna (navi) Figueiredo Gomes 2025-06-15 22:40:43 +02:00 committed by navi
parent 83253aa2b1
commit ec00ad771d

View File

@ -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);