From 65d6f258c5242ac26e17fc803818d76e62c40b83 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 22 Oct 2020 18:11:15 +0200 Subject: [PATCH] mapi: remove unused function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This function is unused, and also unsafe. Let's just get rid of it. Reviewed-by: Ian Romanick Reviewed-by: Louis-Francis Ratté-Boulianne Part-of: --- src/mapi/u_current.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/mapi/u_current.h b/src/mapi/u_current.h index 9a79f0bf93a..8f7d222b976 100644 --- a/src/mapi/u_current.h +++ b/src/mapi/u_current.h @@ -73,14 +73,4 @@ u_current_get_table(void) #endif } -static inline const void * -u_current_get_context(void) -{ -#ifdef USE_ELF_TLS - return u_current_context; -#else - return likely(u_current_context) ? u_current_context : u_current_get_context_internal(); -#endif -} - #endif /* _U_CURRENT_H_ */