genbindings/clang2il: cleanup dead code

This commit is contained in:
mappu 2024-08-29 18:07:39 +12:00
parent 2e5749f9a6
commit 6c1acb9377

View File

@ -666,16 +666,14 @@ func parseSingleTypeString(p string) CppParameter {
isSigned := false isSigned := false
tokens := tokenizeSingleParameter(p) // strings.Split(strings.TrimSpace(p), " ") tokens := tokenizeSingleParameter(p)
insert := CppParameter{} insert := CppParameter{}
for _, tok := range tokens { for _, tok := range tokens {
if tok == "" { if tok == "" {
continue // extra space continue // extra space
} else if tok == "const" || tok == "*const" { } else if tok == "const" {
// *const happens for QPixmap, clang reports `const char *const *` which
// isn't even valid syntax
insert.Const = true insert.Const = true
} else if tok == "&" { // U+0026 } else if tok == "&" { // U+0026