X-Git-Url: https://code.delx.au/refind/blobdiff_plain/4cbcc9d19f8bfa11a4bc396645c5689d4c6f9482..494f7ae2bbd05b26a4a1b3dc2b57120bb7025dd6:/refind/gpt.c diff --git a/refind/gpt.c b/refind/gpt.c index 60da3bb..cc6c70b 100644 --- a/refind/gpt.c +++ b/refind/gpt.c @@ -185,31 +185,6 @@ EFI_STATUS ReadGptData(REFIT_VOLUME *Volume, GPT_DATA **Data) { return Status; } // EFI_STATUS ReadGptData() -// // Look in gPartitions for a partition with the specified Guid. If found, return -// // a pointer to that partition's name string. If not found, return a NULL pointer. -// // The calling function is responsible for freeing the returned memory. -// CHAR16 * PartNameFromGuid(EFI_GUID *Guid) { -// UINTN i; -// CHAR16 *Found = NULL; -// GPT_DATA *GptData; -// -// if ((Guid == NULL) || (gPartitions == NULL)) -// return NULL; -// -// GptData = gPartitions; -// while ((GptData != NULL) && (!Found)) { -// i = 0; -// while ((i < GptData->Header->entry_count) && (!Found)) { -// if (GuidsAreEqual((EFI_GUID*) &(GptData->Entries[i].partition_guid), Guid)) -// Found = StrDuplicate(GptData->Entries[i].name); -// else -// i++; -// } // while(scanning entries) -// GptData = GptData->NextEntry; -// } // while(scanning GPTs) -// return Found; -// } // CHAR16 * PartNameFromGuid() - // Look in gPartitions for a partition with the specified Guid. If found, return // a pointer to that partition's data. If not found, return a NULL pointer. // The calling function is responsible for freeing the returned memory.