MdeModulePkg Tcp4Dxe: Remove redundant functions
The functions that are never called have been removed. They are SockRcvdErr,SockGroup and TcpPawsOK. 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: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
@ -1107,41 +1107,6 @@ SockGetFreeSpace (
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Signal the receive token with the specific error or
|
||||
set socket error code after error is received.
|
||||
|
||||
@param Sock Pointer to the socket.
|
||||
@param Error The error code received.
|
||||
|
||||
**/
|
||||
VOID
|
||||
SockRcvdErr (
|
||||
IN OUT SOCKET *Sock,
|
||||
IN EFI_STATUS Error
|
||||
)
|
||||
{
|
||||
SOCK_TOKEN *SockToken;
|
||||
|
||||
if (!IsListEmpty (&Sock->RcvTokenList)) {
|
||||
|
||||
SockToken = NET_LIST_HEAD (
|
||||
&Sock->RcvTokenList,
|
||||
SOCK_TOKEN,
|
||||
TokenList
|
||||
);
|
||||
|
||||
RemoveEntryList (&SockToken->TokenList);
|
||||
|
||||
SIGNAL_TOKEN (SockToken->Token, Error);
|
||||
|
||||
FreePool (SockToken);
|
||||
} else {
|
||||
|
||||
SOCK_ERROR (Sock, Error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Called by the low layer protocol to indicate that there will be no more data
|
||||
|
Reference in New Issue
Block a user