Skip to content

Commit eef5f70

Browse files
committed
Remove commented code
1 parent 37ba031 commit eef5f70

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

msgp/read.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func (m *Reader) CopyNext(w io.Writer) (int64, error) {
169169
// Fallthrough
170170
} else {
171171
// Intentional "else no error" branch due to fallthrough above.
172-
// Otherwise,
172+
// Just write the buffer.
173173
var nInt int
174174
nInt, err = w.Write(buf)
175175
n = int64(nInt)
@@ -178,7 +178,6 @@ func (m *Reader) CopyNext(w io.Writer) (int64, error) {
178178
} else if n != int64(sz) {
179179
return n, io.ErrShortWrite
180180
}
181-
182181
}
183182

184183
// for maps and slices, read elements

msgp/read_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -763,12 +763,6 @@ func TestCopyNext(t *testing.T) {
763763
n, buf.Len())
764764
}
765765

766-
// p := make([]byte, 0, len(buf.Bytes()))
767-
// n, err := de.ReadNext(p)
768-
// if err != nil {
769-
// t.Fatal(err)
770-
// }
771-
772766
if !bytes.Equal(buf.Bytes(), w.Bytes()) {
773767
t.Fatalf("not equal! %v, %v", buf.Bytes(), w.Bytes())
774768
}

0 commit comments

Comments
 (0)