mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
MdeModulePkg TerminalDxe: Remove a redundant function
The function UnicodeFiFoGetKeyCount that is never called has been removed. https://bugzilla.tianocore.org/show_bug.cgi?id=1062 Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: shenglei <shenglei.zhang@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
2394f31c55
commit
a2a6f9f61d
@ -1131,18 +1131,6 @@ IsUnicodeFiFoFull (
|
|||||||
TERMINAL_DEV *TerminalDevice
|
TERMINAL_DEV *TerminalDevice
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
|
||||||
Count Unicode FIFO buffer.
|
|
||||||
|
|
||||||
@param TerminalDevice Terminal driver private structure
|
|
||||||
|
|
||||||
@return The count in bytes of Unicode FIFO.
|
|
||||||
|
|
||||||
**/
|
|
||||||
UINT8
|
|
||||||
UnicodeFiFoGetKeyCount (
|
|
||||||
TERMINAL_DEV *TerminalDevice
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Translate raw data into Unicode (according to different encode), and
|
Translate raw data into Unicode (according to different encode), and
|
||||||
|
@ -1200,31 +1200,6 @@ IsUnicodeFiFoFull (
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
Count Unicode FIFO buffer.
|
|
||||||
|
|
||||||
@param TerminalDevice Terminal driver private structure
|
|
||||||
|
|
||||||
@return The count in bytes of Unicode FIFO.
|
|
||||||
|
|
||||||
**/
|
|
||||||
UINT8
|
|
||||||
UnicodeFiFoGetKeyCount (
|
|
||||||
TERMINAL_DEV *TerminalDevice
|
|
||||||
)
|
|
||||||
{
|
|
||||||
UINT8 Tail;
|
|
||||||
UINT8 Head;
|
|
||||||
|
|
||||||
Tail = TerminalDevice->UnicodeFiFo->Tail;
|
|
||||||
Head = TerminalDevice->UnicodeFiFo->Head;
|
|
||||||
|
|
||||||
if (Tail >= Head) {
|
|
||||||
return (UINT8) (Tail - Head);
|
|
||||||
} else {
|
|
||||||
return (UINT8) (Tail + FIFO_MAX_NUMBER + 1 - Head);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Update the Unicode characters from a terminal input device into EFI Keys FIFO.
|
Update the Unicode characters from a terminal input device into EFI Keys FIFO.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user