From ec7d390a9046ff11cf0f61df37493bbc140fbd38 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Thu, 21 Sep 2023 15:11:28 +0200 Subject: [PATCH] Remove unused function (#343) This is causing the build to fail with stricter warnings. `error: no previous prototype for function 'CpuFeatures_IsHwCapCpuidSupported' [-Werror,-Wmissing-prototypes]` --- src/hwcaps_linux_or_android.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/hwcaps_linux_or_android.c b/src/hwcaps_linux_or_android.c index c969a88e..d4f58eaf 100644 --- a/src/hwcaps_linux_or_android.c +++ b/src/hwcaps_linux_or_android.c @@ -153,9 +153,5 @@ const char *CpuFeatures_GetBasePlatformPointer(void) { return (const char *)GetHardwareCapabilitiesFor(AT_BASE_PLATFORM); } -bool CpuFeatures_IsHwCapCpuidSupported(void) { - return GetElfHwcapFromGetauxval(AARCH64_HWCAP_CPUID); -} - #endif // CPU_FEATURES_TEST #endif // defined(CPU_FEATURES_OS_LINUX) || defined(CPU_FEATURES_OS_ANDROID)