diff --git a/renderdoc/hooks/hooks.cpp b/renderdoc/hooks/hooks.cpp index 5b9fd0609..338970f04 100644 --- a/renderdoc/hooks/hooks.cpp +++ b/renderdoc/hooks/hooks.cpp @@ -52,35 +52,3 @@ void LibraryHooks::OptionsUpdated() for(LibraryHook *lib : LibList()) lib->OptionsUpdated(); } - -//////////////////////////////////////////////////////////////////////// -// Very temporary compatibility layer with previous function interface. -// -// PosixHookFunction just calls LibraryHooks::RegisterFunctionHook and -// stores the resulting pointer in a map to look up later in -// PosixGetFunction -//////////////////////////////////////////////////////////////////////// - -static std::map origLookup; - -void PosixHookFunction(const char *name, void *hook) -{ - void **orig = origLookup[name]; - if(orig == NULL) - { - orig = origLookup[name] = new void *; - *orig = NULL; - } - - LibraryHooks::RegisterFunctionHook("", FunctionHook(name, orig, hook)); -} - -void *PosixGetFunction(void *handle, const char *name) -{ - void **orig = origLookup[name]; - if(orig && *orig) - return *orig; - - ScopedSuppressHooking suppress; - return Process::GetFunctionAddress(handle, name); -} diff --git a/renderdoc/hooks/hooks.h b/renderdoc/hooks/hooks.h index 53e4252d0..b95782342 100644 --- a/renderdoc/hooks/hooks.h +++ b/renderdoc/hooks/hooks.h @@ -212,10 +212,3 @@ struct ScopedSuppressHooking ScopedSuppressHooking(); ~ScopedSuppressHooking(); }; - -//////////////////////////////////////////////////////////////////////// -// Very temporary compatibility layer with previous function interface. -//////////////////////////////////////////////////////////////////////// - -void PosixHookFunction(const char *name, void *hook); -void *PosixGetFunction(void *handle, const char *name); \ No newline at end of file