Revision: 15353
          http://sourceforge.net/p/edk2/code/15353
Author:   jcarsey
Date:     2014-03-20 17:11:52 +0000 (Thu, 20 Mar 2014)
Log Message:
-----------
ShellPkg: Remove unused function

This function was not exposed outside the library and is not used internally.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <[email protected]>
Reviewed-by: Erik Bjorge <[email protected]>

Modified Paths:
--------------
    
trunk/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.c
    
trunk/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.h

Modified: 
trunk/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.c
===================================================================
--- 
trunk/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.c
       2014-03-20 17:10:57 UTC (rev 15352)
+++ 
trunk/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.c
       2014-03-20 17:11:52 UTC (rev 15353)
@@ -1,7 +1,7 @@
 /** @file
   Main file for NULL named library for level 1 shell command functions.
 
-  Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD 
License
   which accompanies this distribution.  The full text of the license may be 
found at
@@ -19,43 +19,6 @@
 BOOLEAN    gInReconnect = FALSE;
 
 /**
-  Function to translate the EFI_MEMORY_TYPE into a string.
-
-  @param[in] Memory     The memory type.
-
-  @retval               A string representation of the type allocated from BS 
Pool.
-**/
-CHAR16*
-EFIAPI
-ConvertMemoryType (
-  IN CONST EFI_MEMORY_TYPE Memory
-  )
-{
-  CHAR16 *RetVal;
-  RetVal = NULL;
-
-  switch (Memory) {
-  case EfiReservedMemoryType:       StrnCatGrow(&RetVal, NULL, 
L"EfiReservedMemoryType", 0);        break;
-  case EfiLoaderCode:               StrnCatGrow(&RetVal, NULL, 
L"EfiLoaderCode", 0);                break;
-  case EfiLoaderData:               StrnCatGrow(&RetVal, NULL, 
L"EfiLoaderData", 0);                break;
-  case EfiBootServicesCode:         StrnCatGrow(&RetVal, NULL, 
L"EfiBootServicesCode", 0);          break;
-  case EfiBootServicesData:         StrnCatGrow(&RetVal, NULL, 
L"EfiBootServicesData", 0);          break;
-  case EfiRuntimeServicesCode:      StrnCatGrow(&RetVal, NULL, 
L"EfiRuntimeServicesCode", 0);       break;
-  case EfiRuntimeServicesData:      StrnCatGrow(&RetVal, NULL, 
L"EfiRuntimeServicesData", 0);       break;
-  case EfiConventionalMemory:       StrnCatGrow(&RetVal, NULL, 
L"EfiConventionalMemory", 0);        break;
-  case EfiUnusableMemory:           StrnCatGrow(&RetVal, NULL, 
L"EfiUnusableMemory", 0);            break;
-  case EfiACPIReclaimMemory:        StrnCatGrow(&RetVal, NULL, 
L"EfiACPIReclaimMemory", 0);         break;
-  case EfiACPIMemoryNVS:            StrnCatGrow(&RetVal, NULL, 
L"EfiACPIMemoryNVS", 0);             break;
-  case EfiMemoryMappedIO:           StrnCatGrow(&RetVal, NULL, 
L"EfiMemoryMappedIO", 0);            break;
-  case EfiMemoryMappedIOPortSpace:  StrnCatGrow(&RetVal, NULL, 
L"EfiMemoryMappedIOPortSpace", 0);   break;
-  case EfiPalCode:                  StrnCatGrow(&RetVal, NULL, L"EfiPalCode", 
0);                   break;
-  case EfiMaxMemoryType:            StrnCatGrow(&RetVal, NULL, 
L"EfiMaxMemoryType", 0);             break;
-  default: ASSERT(FALSE);
-  }
-  return (RetVal);
-}
-
-/**
   Function to return the name of the file containing help if HII will not be 
used.
 
   @return The filename.

Modified: 
trunk/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.h
===================================================================
--- 
trunk/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.h
       2014-03-20 17:10:57 UTC (rev 15352)
+++ 
trunk/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.h
       2014-03-20 17:11:52 UTC (rev 15353)
@@ -1,7 +1,7 @@
 /** @file
   Main file for NULL named library for Profile1 shell command functions.
 
-  Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD 
License
   which accompanies this distribution.  The full text of the license may be 
found at
@@ -203,18 +203,5 @@
   IN EFI_SYSTEM_TABLE  *SystemTable
   );
 
-/**
-  Function to translate the EFI_MEMORY_TYPE into a string.
-
-  @param[in] Memory     The memory type.
-
-  @retval               A string representation of the type allocated from BS 
Pool.
-**/
-CHAR16*
-EFIAPI
-ConvertMemoryType (
-  IN CONST EFI_MEMORY_TYPE Memory
-  );
-
 #endif
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to