Remove unnecessary code

This commit is contained in:
Masaaki Goshima 2021-01-24 14:06:43 +09:00
parent 345da09ed3
commit 6466e00432
1 changed files with 0 additions and 1 deletions

View File

@ -171,7 +171,6 @@ func (e *Encoder) runEscaped(ctx *encodeRuntimeContext, b []byte, codeSet *opcod
}
iface := (*interfaceHeader)(e.ptrToUnsafePtr(ptr))
ctx.keepRefs = append(ctx.keepRefs, unsafe.Pointer(iface))
ctx.keepRefs = append(ctx.keepRefs, iface.ptr)
if iface.ptr == nil {
b = encodeNull(b)
b = encodeComma(b)