mirror of https://bitbucket.org/ausocean/av.git
rtmp: remove unused functions
This commit is contained in:
parent
43b3c8631d
commit
d93357bb6f
15
rtmp/rtmp.go
15
rtmp/rtmp.go
|
@ -1677,12 +1677,6 @@ func C_RTMP_Write(r *C_RTMP, buf []byte) int {
|
||||||
return size
|
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
|
// Creates a new C style string from a go string
|
||||||
func goStrToCStr(str string) *byte {
|
func goStrToCStr(str string) *byte {
|
||||||
l := len(str)
|
l := len(str)
|
||||||
|
@ -1717,15 +1711,6 @@ func decBytePtr(ptr unsafe.Pointer, dec int) unsafe.Pointer {
|
||||||
return decPtr(ptr, dec, 1)
|
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{
|
var rtmpErrs = [...]string{
|
||||||
1: "rtmp: not connected",
|
1: "rtmp: not connected",
|
||||||
2: "rtmp: write error",
|
2: "rtmp: write error",
|
||||||
|
|
Loading…
Reference in New Issue