From 654afac9c76c1ff64df5f1e7ef60c77bcb011ef8 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 8 Jul 2021 14:06:10 +0200 Subject: [PATCH] nas_5g_msg_test: remove copy_msg_to_buffer() that is now in test_common.h --- lib/test/asn1/nas_5g_msg_test.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/test/asn1/nas_5g_msg_test.cc b/lib/test/asn1/nas_5g_msg_test.cc index 440602b9f..7926964a4 100644 --- a/lib/test/asn1/nas_5g_msg_test.cc +++ b/lib/test/asn1/nas_5g_msg_test.cc @@ -47,13 +47,6 @@ inline void hex_dump(uint8_t* buf, uint32_t buf_length) printf("\n"); } -void copy_msg_to_buffer(srsran::unique_byte_buffer_t& pdu, srsran::const_byte_span msg) -{ - pdu = srsran::make_byte_buffer(); - memcpy(pdu->msg, msg.data(), msg.size()); - pdu->N_bytes = msg.size(); -} - int registration_request_unpacking_packing_test(srsran::nas_pcap* pcap) { uint8_t reg_request[] = {0x7e, 0x00, 0x41, 0x79, 0x00, 0x0b, 0xf2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,