summaryrefslogtreecommitdiff
path: root/platform/efi/efi_resolver/include/Utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/efi/efi_resolver/include/Utils.h')
-rw-r--r--platform/efi/efi_resolver/include/Utils.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/platform/efi/efi_resolver/include/Utils.h b/platform/efi/efi_resolver/include/Utils.h
deleted file mode 100644
index 981908b2..00000000
--- a/platform/efi/efi_resolver/include/Utils.h
+++ /dev/null
@@ -1,40 +0,0 @@
-#pragma once
-
-#include "binaryninjaapi.h"
-
-using namespace BinaryNinja;
-
-static inline std::string GetOriginalTypeName(Ref<Type> type)
-{
- std::string result;
- if (type->IsPointer())
- {
- if (type->GetChildType().GetValue()->IsNamedTypeRefer())
- {
- return type->GetChildType().GetValue()->GetNamedTypeReference()->GetName().GetString();
- }
- return type->GetTypeName().GetString();
- }
- if (type->IsNamedTypeRefer())
- return type->GetNamedTypeReference()->GetName().GetString();
-
- return type->GetTypeName().GetString();
-}
-
-static inline std::string GetVarNameForTypeStr(const std::string typeStr)
-{
- std::istringstream iss(typeStr);
- std::string word;
- std::string result;
-
- while (std::getline(iss, word, '_'))
- {
- if (!word.empty())
- {
- word[0] = std::toupper(word[0]);
- std::transform(word.begin() + 1, word.end(), word.begin() + 1, ::tolower);
- result += word;
- }
- }
- return result;
-}