From 6466e004320fa13baa47833732aefe9ddb65fe21 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Sun, 24 Jan 2021 14:06:43 +0900 Subject: [PATCH] Remove unnecessary code --- encode_vm_escaped.go | 1 - 1 file changed, 1 deletion(-) diff --git a/encode_vm_escaped.go b/encode_vm_escaped.go index 72431ba..3b3a7d0 100644 --- a/encode_vm_escaped.go +++ b/encode_vm_escaped.go @@ -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)