From 066e7f359d2c7cbc6eed32bf379f67946a5b1c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20Ho=CC=88ner?= Date: Sat, 25 Nov 2017 00:41:27 +0100 Subject: [PATCH] Removed old feature check flags --- include/Zydis/Zydis.h | 2 -- src/Zydis.c | 14 ++------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/include/Zydis/Zydis.h b/include/Zydis/Zydis.h index 468ddf9..04c5a15 100644 --- a/include/Zydis/Zydis.h +++ b/include/Zydis/Zydis.h @@ -111,8 +111,6 @@ enum ZydisFeatures { ZYDIS_FEATURE_EVEX, ZYDIS_FEATURE_MVEX, - ZYDIS_FEATURE_FLAGS, - ZYDIS_FEATURE_CPUID }; /* ============================================================================================== */ diff --git a/src/Zydis.c b/src/Zydis.c index a7a5713..edbdc32 100644 --- a/src/Zydis.c +++ b/src/Zydis.c @@ -45,24 +45,14 @@ ZydisBool ZydisIsFeatureEnabled(ZydisFeature feature) #else return ZYDIS_FALSE; #endif + case ZYDIS_FEATURE_MVEX: #ifndef ZYDIS_DISABLE_MVEX return ZYDIS_TRUE; #else return ZYDIS_FALSE; #endif - case ZYDIS_FEATURE_FLAGS: -#ifndef ZYDIS_DISABLE_FLAGS - return ZYDIS_TRUE; -#else - return ZYDIS_FALSE; -#endif - case ZYDIS_FEATURE_CPUID: -#ifndef ZYDIS_DISABLE_CPUID - return ZYDIS_TRUE; -#else - return ZYDIS_FALSE; -#endif + default: return ZYDIS_FALSE; }