Fix some useless code detected by scan-build (LLVM/Clang)

This commit is contained in:
Sylvestre Ledru 2013-03-05 18:17:50 +01:00 committed by William S Fulton
commit e0b14786d6
7 changed files with 2 additions and 16 deletions

View file

@ -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"))