diff --git a/core/AmRtpPacket.cpp b/core/AmRtpPacket.cpp index ce9fd5cd..406f48f1 100644 --- a/core/AmRtpPacket.cpp +++ b/core/AmRtpPacket.cpp @@ -238,9 +238,3 @@ int AmRtpPacket::recv(int sd) return ret; } - -void AmRtpPacket::copy(const AmRtpPacket* p) -{ - memcpy(this,p,sizeof(AmRtpPacket)); - memcpy(buffer,p->buffer,b_size); -} diff --git a/core/AmRtpPacket.h b/core/AmRtpPacket.h index 55cfff12..b4f8871b 100644 --- a/core/AmRtpPacket.h +++ b/core/AmRtpPacket.h @@ -87,9 +87,6 @@ public: unsigned char* getBuffer(); void setBufferSize(unsigned int b) { b_size = b; } - void copy(const AmRtpPacket* p); - - friend class AmRtpPacketTracer; }; #endif