aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-08-11 10:33:40 +0000
committerOmar Polo <op@omarpolo.com>2023-08-11 10:33:40 +0000
commit8bb1b2363302a31c91ba921580d3227ccd3e878c (patch)
tree8b3008dc5146b41d235a12c256c948873016682d /utils.c
parentcf2784df752095e7f81d4ea55ef6a7f1fb6224c4 (diff)
remove a long, long unused function
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/utils.c b/utils.c
index a968159..4485f89 100644
--- a/utils.c
+++ b/utils.c
@@ -78,18 +78,6 @@ ends_with(const char *str, const char *sufx)
return 1;
}
-ssize_t
-filesize(int fd)
-{
- ssize_t len;
-
- if ((len = lseek(fd, 0, SEEK_END)) == -1)
- return -1;
- if (lseek(fd, 0, SEEK_SET) == -1)
- return -1;
- return len;
-}
-
char *
absolutify_path(const char *path)
{