rtmp: remove unused fields

reported by honnef.co/go/tools/cmd/unused

rtmp_headers.go:145:2: field sb_ssl is unused (U1000)
rtmp_headers.go:167:2: field subscribepath is unused (U1000)
rtmp_headers.go:168:2: field usherToken is unused (U1000)
rtmp_headers.go:170:2: field pubUser is unused (U1000)
rtmp_headers.go:171:2: field pubPasswd is unused (U1000)
rtmp_headers.go:173:2: field edepth is unused (U1000)
rtmp_headers.go:175:2: field stopTime is unused (U1000)
rtmp_headers.go:180:2: field pFlags is unused (U1000)
rtmp_headers.go:189:2: field bufpos is unused (U1000)
rtmp_headers.go:190:2: field buflen is unused (U1000)
rtmp_headers.go:191:2: field timestamp is unused (U1000)
rtmp_headers.go:195:2: field initialFrameType is unused (U1000)
rtmp_headers.go:197:2: field metaHeader is unused (U1000)
rtmp_headers.go:198:2: field initialFrame is unused (U1000)
rtmp_headers.go:199:2: field nMetaHeaderSize is unused (U1000)
rtmp_headers.go:200:2: field nInitialFrameSize is unused (U1000)
rtmp_headers.go:223:2: field m_mediaStamp is unused (U1000)
rtmp_headers.go:224:2: field m_pauseStamp is unused (U1000)
rtmp_headers.go:245:2: field m_polling is unused (U1000)
rtmp_headers.go:248:2: field m_clientID is unused (U1000)
This commit is contained in:
Dan Kortschak 2018-09-09 19:35:56 +09:30
parent fed685b107
commit f0462ee511
1 changed files with 19 additions and 39 deletions

View File

@ -142,7 +142,6 @@ type C_RTMPSockBuf struct {
sb_start *byte sb_start *byte
sb_buf [RTMP_BUFFER_CACHE_SIZE]byte // port const sb_buf [RTMP_BUFFER_CACHE_SIZE]byte // port const
sb_timedout int32 sb_timedout int32
sb_ssl uintptr
} }
// RTMPPacket_IsReady(a) // RTMPPacket_IsReady(a)
@ -164,20 +163,13 @@ type C_RTMP_LNK struct {
app string app string
auth string auth string
flashVer string flashVer string
subscribepath string
usherToken string
token string token string
pubUser string
pubPasswd string
extras C_AMFObject extras C_AMFObject
edepth int32
seekTime int32 seekTime int32
stopTime int32
lFlags int32 lFlags int32
swfAge int32 swfAge int32
protocol int32 protocol int32
timeout int32 timeout int32
pFlags int32
socksport uint16 socksport uint16
port uint16 port uint16
} }
@ -186,18 +178,10 @@ type C_RTMP_LNK struct {
// rtmp.h +200 // rtmp.h +200
type C_RTMP_READ struct { type C_RTMP_READ struct {
buf *byte buf *byte
bufpos *byte
buflen uint
timestamp uint32
dataType uint8 dataType uint8
flags uint8 flags uint8
status int8 status int8
initialFrameType uint8
nResumeTS uint32 nResumeTS uint32
metaHeader *byte
initialFrame *byte
nMetaHeaderSize uint32
nInitialFrameSize uint32
nIgnoredFrameCounter uint32 nIgnoredFrameCounter uint32
nIgnoredFlvFrameCounter uint32 nIgnoredFlvFrameCounter uint32
} }
@ -220,8 +204,6 @@ type C_RTMP struct {
m_nBufferMS int32 m_nBufferMS int32
m_stream_id int32 m_stream_id int32
m_mediaChannel int32 m_mediaChannel int32
m_mediaStamp uint32
m_pauseStamp uint32
m_pausing int32 m_pausing int32
m_nServerBW int32 m_nServerBW int32
m_nClientBW int32 m_nClientBW int32
@ -242,10 +224,8 @@ type C_RTMP struct {
m_fEncoding float64 m_fEncoding float64
m_fDuration float64 m_fDuration float64
m_msgCounter int32 m_msgCounter int32
m_polling int32
m_resplen int32 m_resplen int32
m_unackd int32 m_unackd int32
m_clientID string
m_read C_RTMP_READ m_read C_RTMP_READ
m_write C_RTMPPacket m_write C_RTMPPacket
m_sb C_RTMPSockBuf m_sb C_RTMPSockBuf