MdePkg: Remove code wrapped by DISABLE_NEW_DEPRECATED_INTERFACES

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2777
Code wrapped by DISABLE_NEW_DEPRECATED_INTERFACES is deprecated.
So remove it.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
Zhang, Shenglei
2020-08-05 14:08:03 +08:00
committed by mergify[bot]
parent cc942105ed
commit 9c1f455f5f
11 changed files with 0 additions and 3086 deletions

View File

@@ -680,59 +680,6 @@ FreeUnicodeStringTable (
IN EFI_UNICODE_STRING_TABLE *UnicodeStringTable
);
#ifndef DISABLE_NEW_DEPRECATED_INTERFACES
/**
[ATTENTION] This function will be deprecated for security reason.
Returns a pointer to an allocated buffer that contains the contents of a
variable retrieved through the UEFI Runtime Service GetVariable(). The
returned buffer is allocated using AllocatePool(). The caller is responsible
for freeing this buffer with FreePool().
If Name is NULL, then ASSERT().
If Guid is NULL, then ASSERT().
@param[in] Name The pointer to a Null-terminated Unicode string.
@param[in] Guid The pointer to an EFI_GUID structure.
@retval NULL The variable could not be retrieved.
@retval NULL There are not enough resources available for the variable contents.
@retval Other A pointer to allocated buffer containing the variable contents.
**/
VOID *
EFIAPI
GetVariable (
IN CONST CHAR16 *Name,
IN CONST EFI_GUID *Guid
);
/**
[ATTENTION] This function will be deprecated for security reason.
Returns a pointer to an allocated buffer that contains the contents of a
variable retrieved through the UEFI Runtime Service GetVariable(). This
function always uses the EFI_GLOBAL_VARIABLE GUID to retrieve variables.
The returned buffer is allocated using AllocatePool(). The caller is
responsible for freeing this buffer with FreePool().
If Name is NULL, then ASSERT().
@param[in] Name The pointer to a Null-terminated Unicode string.
@retval NULL The variable could not be retrieved.
@retval NULL There are not enough resources available for the variable contents.
@retval Other A pointer to allocated buffer containing the variable contents.
**/
VOID *
EFIAPI
GetEfiGlobalVariable (
IN CONST CHAR16 *Name
);
#endif
/**
Returns the status whether get the variable success. The function retrieves