diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 31c52cc0..4fc83366 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -1677,12 +1677,6 @@ func C_RTMP_Write(r *C_RTMP, buf []byte) int { return size } -func memmove(to, from unsafe.Pointer, n uintptr) { - if to != nil && from != nil && n != 0 { - copy((*[_Gi]byte)(to)[:n], (*[_Gi]byte)(from)[:n]) - } -} - // Creates a new C style string from a go string func goStrToCStr(str string) *byte { l := len(str) @@ -1717,15 +1711,6 @@ func decBytePtr(ptr unsafe.Pointer, dec int) unsafe.Pointer { return decPtr(ptr, dec, 1) } -// sliceToPtr get's the address of the first data element and returns as unsafe -// pointer -func sliceToPtr(data []byte) unsafe.Pointer { - if len(data) == 0 { - return nil - } - return unsafe.Pointer(&data[0]) -} - var rtmpErrs = [...]string{ 1: "rtmp: not connected", 2: "rtmp: write error",