Remove unused function

This commit is contained in:
topjohnwu 2019-05-26 22:01:42 -07:00
parent 6a54672b13
commit 5d357bc41f
2 changed files with 0 additions and 5 deletions

View File

@ -331,10 +331,6 @@ void *__mmap(const char *filename, size_t *size, bool rw) {
return buf;
}
void mmap_ro(const char *filename, void **buf, size_t *size) {
*buf = __mmap(filename, size, false);
}
void fd_full_read(int fd, void **buf, size_t *size) {
*size = lseek(fd, 0, SEEK_END);
lseek(fd, 0, SEEK_SET);

View File

@ -118,7 +118,6 @@ int setattrat(int dirfd, const char *name, struct file_attr *a);
int fsetattr(int fd, struct file_attr *a);
void fclone_attr(int sourcefd, int targetfd);
void clone_attr(const char *source, const char *target);
void mmap_ro(const char *filename, void **buf, size_t *size);
void fd_full_read(int fd, void **buf, size_t *size);
void full_read(const char *filename, void **buf, size_t *size);
void write_zero(int fd, size_t size);