genbindings: remove last use of isSubclass variable

This commit is contained in:
mappu 2025-01-18 17:57:25 +13:00
parent 3697849067
commit 5cce6739f5

View File

@ -767,7 +767,6 @@ import "C"
ret.WriteString(` ret.WriteString(`
type ` + goClassName + ` struct { type ` + goClassName + ` struct {
h *C.` + goClassName + ` h *C.` + goClassName + `
isSubclass bool
`) `)
// Embed all inherited types to directly allow calling inherited methods // Embed all inherited types to directly allow calling inherited methods
@ -886,9 +885,7 @@ import "C"
// Call Cgo constructor // Call Cgo constructor
ret.WriteString(` ret.WriteString(`
ret := new` + goClassName + `(C.` + goClassName + `_new` + maybeSuffix(i) + `(` + forwarding + `)) return new` + goClassName + `(C.` + goClassName + `_new` + maybeSuffix(i) + `(` + forwarding + `))
ret.isSubclass = true
return ret
} }
`) `)