Skip to content

Commit

Permalink
[LibOS] Remove an unused function
Browse files Browse the repository at this point in the history
Signed-off-by: g2flyer <[email protected]>
  • Loading branch information
g2flyer authored and Dmitrii Kuvaiskii committed Sep 3, 2024
1 parent 63f8b1f commit 1fcf5f3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions libos/src/bookkeep/libos_handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,16 +499,6 @@ int set_new_fd_handle_above_fd(uint32_t fd, struct libos_handle* hdl, int fd_fla
return __set_new_fd_handle(fd, hdl, fd_flags, handle_map, /*find_first=*/true);
}

static inline __attribute__((unused)) const char* __handle_name(struct libos_handle* hdl) {
if (hdl->uri)
return hdl->uri;
if (hdl->dentry && hdl->dentry->name[0] != '\0')
return hdl->dentry->name;
if (hdl->fs)
return hdl->fs->name;
return "(unknown)";
}

void get_handle(struct libos_handle* hdl) {
refcount_inc(&hdl->ref_count);
}
Expand Down

0 comments on commit 1fcf5f3

Please sign in to comment.