aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmid.h1
-rw-r--r--utils.c12
2 files changed, 0 insertions, 13 deletions
diff --git a/gmid.h b/gmid.h
index 7651f9b..64cbc3b 100644
--- a/gmid.h
+++ b/gmid.h
@@ -455,7 +455,6 @@ int puny_decode(const char*, char*, size_t, const char**);
const char *strip_path(const char *, int);
int starts_with(const char*, const char*);
int ends_with(const char*, const char*);
-ssize_t filesize(int);
char *absolutify_path(const char*);
char *xstrdup(const char*);
void *xcalloc(size_t, size_t);
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)
{