Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
pwaller committed Nov 11, 2016
1 parent 37ba031 commit eef5f70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions msgp/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (m *Reader) CopyNext(w io.Writer) (int64, error) {
// Fallthrough
} else {
// Intentional "else no error" branch due to fallthrough above.
// Otherwise,
// Just write the buffer.
var nInt int
nInt, err = w.Write(buf)
n = int64(nInt)
Expand All @@ -178,7 +178,6 @@ func (m *Reader) CopyNext(w io.Writer) (int64, error) {
} else if n != int64(sz) {
return n, io.ErrShortWrite
}

}

// for maps and slices, read elements
Expand Down
6 changes: 0 additions & 6 deletions msgp/read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -763,12 +763,6 @@ func TestCopyNext(t *testing.T) {
n, buf.Len())
}

// p := make([]byte, 0, len(buf.Bytes()))
// n, err := de.ReadNext(p)
// if err != nil {
// t.Fatal(err)
// }

if !bytes.Equal(buf.Bytes(), w.Bytes()) {
t.Fatalf("not equal! %v, %v", buf.Bytes(), w.Bytes())
}
Expand Down

0 comments on commit eef5f70

Please sign in to comment.