Fix some useless code detected by scan-build (LLVM/Clang)
This commit is contained in:
parent
670962cfe8
commit
e0b14786d6
7 changed files with 2 additions and 16 deletions
|
|
@ -746,7 +746,6 @@ SwigType *SwigType_add_function(SwigType *t, ParmList *parms) {
|
|||
|
||||
Insert(t, 0, ").");
|
||||
pstr = NewString("f(");
|
||||
p = parms;
|
||||
for (p = parms; p; p = nextSibling(p)) {
|
||||
if (p != parms)
|
||||
Putc(',', pstr);
|
||||
|
|
@ -844,7 +843,6 @@ SwigType *SwigType_add_template(SwigType *t, ParmList *parms) {
|
|||
Parm *p;
|
||||
|
||||
Append(t, "<(");
|
||||
p = parms;
|
||||
for (p = parms; p; p = nextSibling(p)) {
|
||||
String *v;
|
||||
if (Getattr(p, "default"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue