]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove the old unused ValueToString code, which has been replaced by UnicodeValueToSt...
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 13 Nov 2009 05:58:29 +0000 (05:58 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 13 Nov 2009 05:58:29 +0000 (05:58 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9423 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/SetupBrowserDxe/Print.c
MdeModulePkg/Universal/SetupBrowserDxe/Print.h [deleted file]
MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
MdeModulePkg/Universal/SetupBrowserDxe/Ui.h

index 1acf7ee61712ec6fc8db9bfbefa1fc08d82d6c3a..8633e618481bb6a47b046156936eed704e058ba8 100644 (file)
@@ -28,24 +28,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "Setup.h"\r
 \r
-/**\r
-  VSPrint worker function that prints a Value as a decimal number in Buffer.\r
-\r
-  @param  Buffer     Location to place ascii decimal number string of Value.\r
-  @param  Flags      Flags to use in printing decimal string, see file header for\r
-                     details.\r
-  @param  Value      Decimal value to convert to a string in Buffer.\r
-\r
-  @return Number of characters printed.\r
-\r
-**/\r
-UINTN\r
-ValueToString (\r
-  IN  OUT CHAR16  *Buffer,\r
-  IN  BOOLEAN     Flags,\r
-  IN  INT64       Value\r
-  );\r
-\r
 /**\r
   The internal function prints to the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL\r
   protocol instance.\r
@@ -280,70 +262,3 @@ PrintCharAt (
 {\r
   return PrintAt (Column, Row, L"%c", Character);\r
 }\r
-\r
-\r
-/**\r
-  VSPrint worker function that prints a Value as a decimal number in Buffer.\r
-\r
-  @param  Buffer     Location to place ascii decimal number string of Value.\r
-  @param  Flags      Flags to use in printing decimal string, see file header for\r
-                     details.\r
-  @param  Value      Decimal value to convert to a string in Buffer.\r
-\r
-  @return Number of characters printed.\r
-\r
-**/\r
-UINTN\r
-ValueToString (\r
-  IN  OUT CHAR16  *Buffer,\r
-  IN  BOOLEAN     Flags,\r
-  IN  INT64       Value\r
-  )\r
-{\r
-  CHAR16  TempBuffer[30];\r
-  CHAR16  *TempStr;\r
-  CHAR16  *BufferPtr;\r
-  UINTN   Count;\r
-  UINTN   NumberCount;\r
-  UINT32  Remainder;\r
-  BOOLEAN Negative;\r
-\r
-  Negative    = FALSE;\r
-  TempStr     = TempBuffer;\r
-  BufferPtr   = Buffer;\r
-  Count       = 0;\r
-  NumberCount = 0;\r
-\r
-  if (Value < 0) {\r
-    Negative = TRUE;\r
-    Value    = -Value;\r
-  }\r
-\r
-  do {\r
-    Value         = (INT64) DivU64x32Remainder  ((UINT64) Value, 10, &Remainder);\r
-    *(TempStr++)  = (CHAR16) (Remainder + '0');\r
-    Count++;\r
-    NumberCount++;\r
-    if ((Flags & COMMA_TYPE) == COMMA_TYPE) {\r
-      if (NumberCount % 3 == 0 && Value != 0) {\r
-        *(TempStr++) = ',';\r
-        Count++;\r
-      }\r
-    }\r
-  } while (Value != 0);\r
-\r
-  if (Negative) {\r
-    *(BufferPtr++) = '-';\r
-    Count++;\r
-  }\r
-\r
-  //\r
-  // Reverse temp string into Buffer.\r
-  //\r
-  while (TempStr != TempBuffer) {\r
-    *(BufferPtr++) = *(--TempStr);\r
-  }\r
-\r
-  *BufferPtr = 0;\r
-  return Count;\r
-}\r
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Print.h b/MdeModulePkg/Universal/SetupBrowserDxe/Print.h
deleted file mode 100644 (file)
index ff41aa6..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/** @file\r
-Micro definitions data for Print.c\r
-\r
-Copyright (c) 2004, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#ifndef _PRINT_H_\r
-#define _PRINT_H_\r
-\r
-#define LEFT_JUSTIFY  0x01\r
-#define PREFIX_SIGN   0x02\r
-#define PREFIX_BLANK  0x04\r
-#define COMMA_TYPE    0x08\r
-#define LONG_TYPE     0x10\r
-#define PREFIX_ZERO   0x20\r
-\r
-//\r
-// Largest number of characters that can be printed out.\r
-//\r
-#define EFI_DRIVER_LIB_MAX_PRINT_BUFFER (80 * 4)\r
-\r
-#endif\r
index 0c3a03d453e3ef789411b13aee270f28aef07c71..a4305aabb8933035b30b36d3023f72227f24053b 100644 (file)
@@ -37,7 +37,6 @@
   Expression.c\r
   InputHandler.c\r
   Print.c\r
-  Print.h\r
   Presentation.c\r
   ProcessOptions.c\r
   Ui.c\r
index 9d1bbae70b45a477c5a968e1bf762a48d4767ac6..44cae882e75c9dc97975ab2afd22e67a3dbf32b5 100644 (file)
@@ -347,24 +347,6 @@ SetupBrowser (
   IN OUT UI_MENU_SELECTION    *Selection\r
   );\r
 \r
-/**\r
-  VSPrint worker function that prints a Value as a decimal number in Buffer.\r
-\r
-  @param  Buffer     Location to place ascii decimal number string of Value.\r
-  @param  Flags      Flags to use in printing decimal string, see file header for\r
-                     details.\r
-  @param  Value      Decimal value to convert to a string in Buffer.\r
-\r
-  @return Number of characters printed.\r
-\r
-**/\r
-VOID\r
-ValueToString (\r
-  IN CHAR16   *Buffer,\r
-  IN BOOLEAN  Flags,\r
-  IN INT64    Value\r
-  );\r
-\r
 /**\r
   Set Buffer to Value for Size bytes.\r
 \r