From 44d7d0e66819790e9f3de20693ffc6374182d063 Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin Date: Thu, 26 Sep 2013 11:58:02 -0400 Subject: MokManager: remove the duplicate get_keystroke() --- MokManager.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'MokManager.c') diff --git a/MokManager.c b/MokManager.c index 67c49ad4..792df32d 100644 --- a/MokManager.c +++ b/MokManager.c @@ -73,18 +73,6 @@ static EFI_STATUS get_variable (CHAR16 *name, EFI_GUID guid, UINT32 *attributes, return efi_status; } -static EFI_INPUT_KEY get_keystroke (void) -{ - EFI_INPUT_KEY key; - UINTN EventIndex; - - uefi_call_wrapper(BS->WaitForEvent, 3, 1, &ST->ConIn->WaitForKey, - &EventIndex); - uefi_call_wrapper(ST->ConIn->ReadKeyStroke, 2, ST->ConIn, &key); - - return key; -} - static EFI_STATUS get_sha1sum (void *Data, int DataSize, UINT8 *hash) { EFI_STATUS status; @@ -553,7 +541,7 @@ static UINT8 get_line (UINT32 *length, CHAR16 *line, UINT32 line_max, UINT8 show int count = 0; do { - key = get_keystroke(); + key = console_get_keystroke(); if ((count >= line_max && key.UnicodeChar != CHAR_BACKSPACE) || -- cgit v1.2.3