Commit 2e89e301 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e49e8544
......@@ -1310,7 +1310,6 @@ func (d *decoderM) genSlice1(assignto string, typ types.Type) {
d.emit(" return 0, mdecodeErr(%q, err)", d.pathName(assignto))
d.emit("}")
// XXX dup wrt decoderN ?
switch t := typ.(type) {
case *types.Basic:
if t.Kind() != types.String {
......@@ -1366,7 +1365,6 @@ func (d *decoderN) genBuf(assignto string) {
}
func (d *decoderM) genBuf(assignto string) {
// XXX dup wrt decoderM.genSlice1 ?
// -> msgp: flush queued overflow checks; put place for next overflow
// checks after msgp is done.
d.overflowCheck()
......@@ -1379,8 +1377,6 @@ func (d *decoderM) genBuf(assignto string) {
d.emit(" return 0, mdecodeErr(%q, err)", d.pathName(assignto))
d.emit("}")
// XXX dup wrt decoderN.genBuf ?
// TODO eventually do not copy but reference original
d.emit("%v= mem.BufAlloc(len(b))", assignto)
d.emit("copy(%v.Data, b)", assignto)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment