Skip to content

Commit

Permalink
Removed unused Mount Namespace helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
palmtenor authored and drzaeus77 committed Sep 8, 2017
1 parent 15b15ed commit 8322f80
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
11 changes: 0 additions & 11 deletions src/cc/bcc_syms.cc
Original file line number Diff line number Diff line change
Expand Up @@ -469,15 +469,4 @@ int bcc_resolve_symname(const char *module, const char *symname,
}
return -1;
}

void *bcc_enter_mount_ns(int pid) {
return static_cast<void *>(new ProcMountNSGuard(pid));
}

void bcc_exit_mount_ns(void **guard) {
if (guard && *guard) {
delete static_cast<ProcMountNSGuard *>(*guard);
*guard = NULL;
}
}
}
3 changes: 0 additions & 3 deletions src/cc/bcc_syms.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ int bcc_resolve_symname(const char *module, const char *symname,
struct bcc_symbol_option* option,
struct bcc_symbol *sym);

void *bcc_enter_mount_ns(int pid);
void bcc_exit_mount_ns(void **guard);

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 8322f80

Please sign in to comment.