From 5cce6739f5911c586f556ffcacb9324f195bd06b Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 18 Jan 2025 17:57:25 +1300 Subject: [PATCH] genbindings: remove last use of isSubclass variable --- cmd/genbindings/emitgo.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/genbindings/emitgo.go b/cmd/genbindings/emitgo.go index 5f337092..18f6b4e8 100644 --- a/cmd/genbindings/emitgo.go +++ b/cmd/genbindings/emitgo.go @@ -767,7 +767,6 @@ import "C" ret.WriteString(` type ` + goClassName + ` struct { h *C.` + goClassName + ` - isSubclass bool `) // Embed all inherited types to directly allow calling inherited methods @@ -886,9 +885,7 @@ import "C" // Call Cgo constructor ret.WriteString(` - ret := new` + goClassName + `(C.` + goClassName + `_new` + maybeSuffix(i) + `(` + forwarding + `)) - ret.isSubclass = true - return ret + return new` + goClassName + `(C.` + goClassName + `_new` + maybeSuffix(i) + `(` + forwarding + `)) } `)