From 3cdf4cd2041562bd6465b485db38589597d2c055 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 15 Apr 2020 16:52:43 +0200 Subject: [PATCH] LibX86: Use MakeUnsigned from AK instead of making a custom one --- Libraries/LibX86/Instruction.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/Libraries/LibX86/Instruction.h b/Libraries/LibX86/Instruction.h index 7d6b8a9ba1..4dfa29aa0b 100644 --- a/Libraries/LibX86/Instruction.h +++ b/Libraries/LibX86/Instruction.h @@ -26,6 +26,7 @@ #pragma once +#include #include #include @@ -39,27 +40,6 @@ public: virtual String symbolicate(FlatPtr, u32* offset = nullptr) const = 0; }; -template -struct MakeUnsigned { - typedef T type; -}; -template<> -struct MakeUnsigned { - typedef u8 type; -}; -template<> -struct MakeUnsigned { - typedef u32 type; -}; -template<> -struct MakeUnsigned { - typedef u32 type; -}; -template<> -struct MakeUnsigned { - typedef u64 type; -}; - template struct TypeTrivia { static const size_t bits = sizeof(T) * 8;