summaryrefslogtreecommitdiff
path: root/lib/guid.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/guid.c')
-rw-r--r--lib/guid.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/guid.c b/lib/guid.c
index c97a7ca8..5f5a03ff 100644
--- a/lib/guid.c
+++ b/lib/guid.c
@@ -6,31 +6,6 @@
#include <guid.h>
-#ifndef BUILD_EFI
-/* EFI has %g for this, so it's only needed in platform c */
-const char *guid_to_str(EFI_GUID *guid)
-{
- static char str[256];
-
- sprintf(str, "%08x-%04hx-%04hx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx",
- guid->Data1, guid->Data2, guid->Data3,
- guid->Data4[0], guid->Data4[1], guid->Data4[2],
- guid->Data4[3], guid->Data4[4], guid->Data4[5],
- guid->Data4[6], guid->Data4[7]);
-
- return str;
-}
-
-void str_to_guid(const char *str, EFI_GUID *guid)
-{
- sscanf(str, "%8x-%4hx-%4hx-%2hhx%2hhx-%2hhx%2hhx%2hhx%2hhx%2hhx%2hhx",
- &guid->Data1, &guid->Data2, &guid->Data3,
- guid->Data4, guid->Data4 + 1, guid->Data4 + 2,
- guid->Data4 + 3, guid->Data4 + 4, guid->Data4 + 5,
- guid->Data4 + 6, guid->Data4 + 7);
-}
-#endif
-
/* all the necessary guids */
EFI_GUID GV_GUID = EFI_GLOBAL_VARIABLE;
EFI_GUID SIG_DB = { 0xd719b2cb, 0x3d3a, 0x4596, {0xa3, 0xbc, 0xda, 0xd0, 0xe, 0x67, 0x65, 0x6f }};