summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-13 05:58:29 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-13 05:58:29 +0000
commit2f3c9af25ecab34663662d69e3ad749a931258a8 (patch)
tree50e925298694106f32501bc87bbbf393a2f18fba /MdeModulePkg
parent4c8358c77afa2968a585095db3e21281deac2d36 (diff)
downloadedk2-2f3c9af25ecab34663662d69e3ad749a931258a8.zip
edk2-2f3c9af25ecab34663662d69e3ad749a931258a8.tar.gz
edk2-2f3c9af25ecab34663662d69e3ad749a931258a8.tar.bz2
Remove the old unused ValueToString code, which has been replaced by UnicodeValueToString API from PrintLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9423 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/Print.c85
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/Print.h30
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf1
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/Ui.h18
4 files changed, 0 insertions, 134 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Print.c b/MdeModulePkg/Universal/SetupBrowserDxe/Print.c
index 1acf7ee..8633e61 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Print.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Print.c
@@ -29,24 +29,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "Setup.h"
/**
- VSPrint worker function that prints a Value as a decimal number in Buffer.
-
- @param Buffer Location to place ascii decimal number string of Value.
- @param Flags Flags to use in printing decimal string, see file header for
- details.
- @param Value Decimal value to convert to a string in Buffer.
-
- @return Number of characters printed.
-
-**/
-UINTN
-ValueToString (
- IN OUT CHAR16 *Buffer,
- IN BOOLEAN Flags,
- IN INT64 Value
- );
-
-/**
The internal function prints to the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL
protocol instance.
@@ -280,70 +262,3 @@ PrintCharAt (
{
return PrintAt (Column, Row, L"%c", Character);
}
-
-
-/**
- VSPrint worker function that prints a Value as a decimal number in Buffer.
-
- @param Buffer Location to place ascii decimal number string of Value.
- @param Flags Flags to use in printing decimal string, see file header for
- details.
- @param Value Decimal value to convert to a string in Buffer.
-
- @return Number of characters printed.
-
-**/
-UINTN
-ValueToString (
- IN OUT CHAR16 *Buffer,
- IN BOOLEAN Flags,
- IN INT64 Value
- )
-{
- CHAR16 TempBuffer[30];
- CHAR16 *TempStr;
- CHAR16 *BufferPtr;
- UINTN Count;
- UINTN NumberCount;
- UINT32 Remainder;
- BOOLEAN Negative;
-
- Negative = FALSE;
- TempStr = TempBuffer;
- BufferPtr = Buffer;
- Count = 0;
- NumberCount = 0;
-
- if (Value < 0) {
- Negative = TRUE;
- Value = -Value;
- }
-
- do {
- Value = (INT64) DivU64x32Remainder ((UINT64) Value, 10, &Remainder);
- *(TempStr++) = (CHAR16) (Remainder + '0');
- Count++;
- NumberCount++;
- if ((Flags & COMMA_TYPE) == COMMA_TYPE) {
- if (NumberCount % 3 == 0 && Value != 0) {
- *(TempStr++) = ',';
- Count++;
- }
- }
- } while (Value != 0);
-
- if (Negative) {
- *(BufferPtr++) = '-';
- Count++;
- }
-
- //
- // Reverse temp string into Buffer.
- //
- while (TempStr != TempBuffer) {
- *(BufferPtr++) = *(--TempStr);
- }
-
- *BufferPtr = 0;
- return Count;
-}
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Print.h b/MdeModulePkg/Universal/SetupBrowserDxe/Print.h
deleted file mode 100644
index ff41aa6..0000000
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Print.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/** @file
-Micro definitions data for Print.c
-
-Copyright (c) 2004, Intel Corporation
-All rights reserved. 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
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#ifndef _PRINT_H_
-#define _PRINT_H_
-
-#define LEFT_JUSTIFY 0x01
-#define PREFIX_SIGN 0x02
-#define PREFIX_BLANK 0x04
-#define COMMA_TYPE 0x08
-#define LONG_TYPE 0x10
-#define PREFIX_ZERO 0x20
-
-//
-// Largest number of characters that can be printed out.
-//
-#define EFI_DRIVER_LIB_MAX_PRINT_BUFFER (80 * 4)
-
-#endif
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf b/MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
index 0c3a03d..a4305aa 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
@@ -37,7 +37,6 @@
Expression.c
InputHandler.c
Print.c
- Print.h
Presentation.c
ProcessOptions.c
Ui.c
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.h b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.h
index 9d1bbae..44cae88 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.h
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.h
@@ -348,24 +348,6 @@ SetupBrowser (
);
/**
- VSPrint worker function that prints a Value as a decimal number in Buffer.
-
- @param Buffer Location to place ascii decimal number string of Value.
- @param Flags Flags to use in printing decimal string, see file header for
- details.
- @param Value Decimal value to convert to a string in Buffer.
-
- @return Number of characters printed.
-
-**/
-VOID
-ValueToString (
- IN CHAR16 *Buffer,
- IN BOOLEAN Flags,
- IN INT64 Value
- );
-
-/**
Set Buffer to Value for Size bytes.
@param Buffer Memory to set.