Skip to content

Commit cb1ea1d

Browse files
committed
Remove unneeded functions
Remove unneeded functions. All those functions have utils_* counterparts in the same file. They were left here by mistake. Signed-off-by: Lukasz Dorau <[email protected]>
1 parent ccdb904 commit cb1ea1d

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/utils/utils_macosx_common.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -90,31 +90,3 @@ int utils_shm_unlink(const char *shm_name) {
9090
int utils_create_anonymous_fd(void) {
9191
return 0; // ignored on MacOSX
9292
}
93-
94-
int os_get_file_size(int fd, size_t *size) {
95-
(void)fd; // unused
96-
(void)size; // unused
97-
return -1; // not supported on MacOSX
98-
}
99-
100-
int os_set_file_size(int fd, size_t size) {
101-
(void)fd; // unused
102-
(void)size; // unused
103-
return 0; // ignored on MacOSX
104-
}
105-
106-
void *os_devdax_mmap(void *hint_addr, size_t length, int prot, int fd) {
107-
(void)hint_addr; // unused
108-
(void)length; // unused
109-
(void)prot; // unused
110-
(void)fd; // unused
111-
return NULL; // not supported on Windows
112-
}
113-
114-
int os_fallocate(int fd, long offset, long len) {
115-
(void)fd; // unused
116-
(void)offset; // unused
117-
(void)len; // unused
118-
119-
return -1;
120-
}

0 commit comments

Comments
 (0)