forked from mirror/go-json
Remove debug log
This commit is contained in:
parent
23290f4ce4
commit
cfb569220d
|
@ -1,7 +1,6 @@
|
||||||
package json
|
package json
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -20,7 +19,6 @@ func newAnonymousFieldDecoder(structType *rtype, offset uintptr, dec decoder) *a
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *anonymousFieldDecoder) decodeStream(s *stream, p unsafe.Pointer) error {
|
func (d *anonymousFieldDecoder) decodeStream(s *stream, p unsafe.Pointer) error {
|
||||||
fmt.Println("called anonymous field decoder", *(*unsafe.Pointer)(p))
|
|
||||||
if *(*unsafe.Pointer)(p) == nil {
|
if *(*unsafe.Pointer)(p) == nil {
|
||||||
*(*unsafe.Pointer)(p) = unsafe_New(d.structType)
|
*(*unsafe.Pointer)(p) = unsafe_New(d.structType)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue