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
tokens := tokenizeSingleParameter(p) // strings.Split(strings.TrimSpace(p), " ")
tokens := tokenizeSingleParameter(p)
insert := CppParameter{}
for _, tok := range tokens {
if tok == "" {
continue // extra space
} else if tok == "const" || tok == "*const" {
// *const happens for QPixmap, clang reports `const char *const *` which
// isn't even valid syntax
} else if tok == "const" {
insert.Const = true
} else if tok == "&" { // U+0026