summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/GenericBdsLib/DevicePath.c
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-01 05:55:58 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-01 05:55:58 +0000
commitb0dd81086156edd2bdf966813660b7224e66b407 (patch)
treef692bf683beff9b89413e8df0f7b58321f1274a9 /MdeModulePkg/Library/GenericBdsLib/DevicePath.c
parent168da756c603850a73af99f5f19c9ad0bce79f27 (diff)
downloadedk2-b0dd81086156edd2bdf966813660b7224e66b407.zip
edk2-b0dd81086156edd2bdf966813660b7224e66b407.tar.gz
edk2-b0dd81086156edd2bdf966813660b7224e66b407.tar.bz2
Code scrub for GenericBdsLib library instance.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6786 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/GenericBdsLib/DevicePath.c')
-rw-r--r--MdeModulePkg/Library/GenericBdsLib/DevicePath.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/MdeModulePkg/Library/GenericBdsLib/DevicePath.c b/MdeModulePkg/Library/GenericBdsLib/DevicePath.c
index 421bba0..478dfd8 100644
--- a/MdeModulePkg/Library/GenericBdsLib/DevicePath.c
+++ b/MdeModulePkg/Library/GenericBdsLib/DevicePath.c
@@ -1492,45 +1492,3 @@ Done:
Str.str[Str.len] = 0;
return Str.str;
}
-
-/**
- Function creates a device path data structure that identically matches the
- device path passed in.
-
- @param DevPath A pointer to a device path data structure.
-
- @return The new copy of DevPath is created to identically match the input.
- @return Otherwise, NULL is returned.
-
-**/
-EFI_DEVICE_PATH_PROTOCOL *
-LibDuplicateDevicePathInstance (
- IN EFI_DEVICE_PATH_PROTOCOL *DevPath
- )
-{
- EFI_DEVICE_PATH_PROTOCOL *NewDevPath;
- EFI_DEVICE_PATH_PROTOCOL *DevicePathInst;
- EFI_DEVICE_PATH_PROTOCOL *Temp;
- UINTN Size;
-
- //
- // get the size of an instance from the input
- //
- Temp = DevPath;
- DevicePathInst = GetNextDevicePathInstance (&Temp, &Size);
-
- //
- // Make a copy
- //
- NewDevPath = NULL;
- if (Size != 0) {
- NewDevPath = AllocateZeroPool (Size);
- ASSERT (NewDevPath != NULL);
- }
-
- if (NewDevPath != NULL) {
- CopyMem (NewDevPath, DevicePathInst, Size);
- }
-
- return NewDevPath;
-}