Skip to content

Remove redundant, doubled function #763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/utils/utils_macosx_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,6 @@ int utils_fallocate(int fd, long offset, long len) {
return -1;
}

umf_result_t os_translate_mem_visibility_flag(umf_memory_visibility_t in_flag,
unsigned *out_flag) {
switch (in_flag) {
case UMF_MEM_MAP_PRIVATE:
*out_flag = MAP_PRIVATE;
return UMF_RESULT_SUCCESS;
case UMF_MEM_MAP_SHARED:
return UMF_RESULT_ERROR_NOT_SUPPORTED; // not supported on MacOSX
}
return UMF_RESULT_ERROR_INVALID_ARGUMENT;
}

// create a shared memory file
int utils_shm_create(const char *shm_name, size_t size) {
(void)shm_name; // unused
Expand Down
Loading