https://git.reactos.org/?p=reactos.git;a=commitdiff;h=44e36b616aea898bc1fb0…
commit 44e36b616aea898bc1fb0f6ca53e6e0e6af22ec0
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Sat Dec 2 00:15:27 2017 +0100
[AFD] Zap unused TaCopyAddress() and TaCopyAddressInPlace().
---
drivers/network/afd/afd/tdiconn.c | 20 --------------------
drivers/network/afd/include/tdiconn.h | 2 --
2 files changed, 22 deletions(-)
diff --git a/drivers/network/afd/afd/tdiconn.c b/drivers/network/afd/afd/tdiconn.c
index a0c27c9c2b..12454b9e94 100644
--- a/drivers/network/afd/afd/tdiconn.c
+++ b/drivers/network/afd/afd/tdiconn.c
@@ -71,26 +71,6 @@ UINT TaLengthOfTransportAddressByType(UINT AddressType)
return AddrLen;
}
-VOID TaCopyAddressInPlace( PTA_ADDRESS Target,
- PTA_ADDRESS Source ) {
- UINT AddrLen = TaLengthOfAddress( Source );
- RtlCopyMemory( Target, Source, AddrLen );
-}
-
-PTA_ADDRESS TaCopyAddress( PTA_ADDRESS Source ) {
- UINT AddrLen = TaLengthOfAddress( Source );
- PVOID Buffer;
- if (!AddrLen)
- return NULL;
-
- Buffer = ExAllocatePool( NonPagedPool, AddrLen );
-
- if (Buffer)
- RtlCopyMemory( Buffer, Source, AddrLen );
-
- return Buffer;
-}
-
VOID TaCopyTransportAddressInPlace( PTRANSPORT_ADDRESS Target,
PTRANSPORT_ADDRESS Source ) {
UINT AddrLen = TaLengthOfTransportAddress( Source );
diff --git a/drivers/network/afd/include/tdiconn.h
b/drivers/network/afd/include/tdiconn.h
index 4a6e10ef4f..340e8ac2c7 100644
--- a/drivers/network/afd/include/tdiconn.h
+++ b/drivers/network/afd/include/tdiconn.h
@@ -6,8 +6,6 @@ PTRANSPORT_ADDRESS TaCopyTransportAddress( PTRANSPORT_ADDRESS OtherAddress
);
PTRANSPORT_ADDRESS TaBuildNullTransportAddress(UINT AddressType);
UINT TaLengthOfAddress( PTA_ADDRESS Addr );
UINT TaLengthOfTransportAddress( PTRANSPORT_ADDRESS Addr );
-VOID TaCopyAddressInPlace( PTA_ADDRESS Target, PTA_ADDRESS Source );
-PTA_ADDRESS TaCopyAddress( PTA_ADDRESS Source );
VOID TaCopyTransportAddressInPlace( PTRANSPORT_ADDRESS Target,
PTRANSPORT_ADDRESS Source );
UINT TdiAddressSizeFromType( UINT Type );