From 605c5ef4fb7c9a9bbf225724ef73e6437476fb3c Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 15 Dec 2016 12:17:19 +0100 Subject: Remove _dl_platform_string There are no non-trivial uses of _dl_platform_string. --- sysdeps/alpha/dl-procinfo.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'sysdeps/alpha') diff --git a/sysdeps/alpha/dl-procinfo.h b/sysdeps/alpha/dl-procinfo.h index f123a8db02..ed7a66ee49 100644 --- a/sysdeps/alpha/dl-procinfo.h +++ b/sysdeps/alpha/dl-procinfo.h @@ -28,13 +28,6 @@ #define _DL_PLATFORMS_COUNT 5 -static inline const char * -__attribute__ ((unused)) -_dl_platform_string (int idx) -{ - return GLRO(dl_alpha_platforms)[idx]; -}; - static inline int __attribute__ ((unused, always_inline)) _dl_string_platform (const char *str) @@ -44,7 +37,7 @@ _dl_string_platform (const char *str) if (str != NULL) for (i = 0; i < _DL_PLATFORMS_COUNT; ++i) { - if (strcmp (str, _dl_platform_string (i)) == 0) + if (strcmp (str, GLRO(dl_alpha_platforms)[i]) == 0) return i; } return -1; -- cgit v1.2.3