[AFD] Zap unused TaCopyAddress() and TaCopyAddressInPlace().
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 1 Dec 2017 23:15:27 +0000 (00:15 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 1 Dec 2017 23:15:27 +0000 (00:15 +0100)
drivers/network/afd/afd/tdiconn.c
drivers/network/afd/include/tdiconn.h

index a0c27c9..12454b9 100644 (file)
@@ -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 );
index 4a6e10e..340e8ac 100644 (file)
@@ -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 );