mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
genbindings/clang2il: cleanup dead code
This commit is contained in:
parent
2e5749f9a6
commit
6c1acb9377
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user