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

@ -1583,8 +1583,6 @@ public:
String *cleanup = NewString("");
String *outarg = NewString("");
idx = 0;
tm = Swig_typemap_lookup("directorout", n, "c_result", w);
if (tm != 0) {
Replaceall(tm, "$input", "swig_result");
@ -1742,7 +1740,6 @@ public:
p = NewParm(type, NewString("self"), n);
q = Copy(p);
set_nextSibling(p, parms);
parms = p;
{
Wrapper *w = NewWrapper();