Skip to content

Commit

Permalink
Removes dumpBinary debug function
Browse files Browse the repository at this point in the history
CI is complaining of deadcode.
  • Loading branch information
LittleLightLittleFire committed May 24, 2020
1 parent 7fd9076 commit ebd045f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions util.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package rtcp

import "fmt"

// getPadding Returns the padding required to make the length a multiple of 4
func getPadding(len int) int {
if len%4 == 0 {
Expand Down Expand Up @@ -31,15 +29,3 @@ func getNBitsFromByte(b byte, begin, n uint16) uint16 {
func get24BitsFromBytes(b []byte) uint32 {
return uint32(b[0])<<16 + uint32(b[1])<<8 + uint32(b[2])
}

// dumpBinary dump []byte to string
func dumpBinary(b []byte) string {
out := ""
for i, v := range b {
out += fmt.Sprintf("0b%08b,", v)
if (i+1)%4 == 0 {
out += "\n"
}
}
return out
}

0 comments on commit ebd045f

Please sign in to comment.