[NFC][memprof] Remove unused code

This commit is contained in:
Vitaly Buka 2022-07-20 18:09:24 -07:00
parent 26a7ee3d54
commit e8554402b3
2 changed files with 0 additions and 8 deletions

View File

@ -66,8 +66,6 @@ void *MemprofDoesNotSupportStaticLinkage();
// memprof_thread.cpp
MemprofThread *CreateMainThread();
void ReadContextStack(void *context, uptr *stack, uptr *ssize);
// Wrapper for TLS/TSD.
void TSDInit(void (*destructor)(void *tsd));
void *TSDGet();

View File

@ -69,12 +69,6 @@ uptr FindDynamicShadowStart() {
/*min_shadow_base_alignment*/ 0, kHighMemEnd);
}
void ReadContextStack(void *context, uptr *stack, uptr *ssize) {
ucontext_t *ucp = (ucontext_t *)context;
*stack = (uptr)ucp->uc_stack.ss_sp;
*ssize = ucp->uc_stack.ss_size;
}
void *MemprofDlSymNext(const char *sym) { return dlsym(RTLD_NEXT, sym); }
} // namespace __memprof