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

View file

@ -820,7 +820,7 @@ SwigType *SwigType_typedef_resolve(const SwigType *t) {
type_elem = SwigType_split(type);
type_sz = Len(type_elem);
i = 0;
for (i = 0; i < type_sz; ++i) {
String *e = Getitem(type_elem, i);
if (!SwigType_isarray(e))