Skip to content

Commit

Permalink
Remove debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickxb committed Jan 14, 2016
1 parent 4e4d737 commit 4dace90
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions go/libkb/stream_classifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"bytes"
"encoding/base64"
"errors"
"fmt"
"io"
"strings"

Expand Down Expand Up @@ -129,12 +128,10 @@ type saltpackHeaderPrefix struct {

func isSaltpackBinary(b []byte, sc *StreamClassification) bool {
if len(b) < 2 {
fmt.Printf("a\n")
return false
}

if b[0] <= 0x92 || b[0] >= 0x9a {
fmt.Printf("b\n")
return false
}
tmp := make([]byte, len(b))
Expand All @@ -146,11 +143,9 @@ func isSaltpackBinary(b []byte, sc *StreamClassification) bool {
var mh codec.MsgpackHandle
var sphp saltpackHeaderPrefix
if err := codec.NewDecoderBytes(tmp, &mh).Decode(&sphp); err != nil {
fmt.Printf("c\n")
return false
}
if sphp.FormatName != saltpack.SaltpackFormatName {
fmt.Printf("d\n")
return false
}
switch sphp.Type {
Expand All @@ -161,7 +156,6 @@ func isSaltpackBinary(b []byte, sc *StreamClassification) bool {
case saltpack.MessageTypeDetachedSignature:
sc.Type = CryptoMessageTypeDetachedSignature
default:
fmt.Printf("e\n")
return false
}
sc.Format = CryptoMessageFormatSaltpack
Expand Down

0 comments on commit 4dace90

Please sign in to comment.