More useless code removal as detected by scan-build (LLVM/Clang)
using scan-build ./configure && scan-build make
This commit is contained in:
parent
e0b14786d6
commit
fdea8a8f51
2 changed files with 1 additions and 2 deletions
|
|
@ -1141,7 +1141,7 @@ void Scanner_skip_line(Scanner * s) {
|
||||||
if ((c = nextchar(s)) == 0)
|
if ((c = nextchar(s)) == 0)
|
||||||
return;
|
return;
|
||||||
if (c == '\\') {
|
if (c == '\\') {
|
||||||
c = nextchar(s);
|
nextchar(s);
|
||||||
} else if (c == '\n') {
|
} else if (c == '\n') {
|
||||||
done = 1;
|
done = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -640,7 +640,6 @@ SwigType *SwigType_ltype(const SwigType *s) {
|
||||||
if (td && (SwigType_isconst(td) || SwigType_isarray(td) || SwigType_isreference(td))) {
|
if (td && (SwigType_isconst(td) || SwigType_isarray(td) || SwigType_isreference(td))) {
|
||||||
/* We need to use the typedef type */
|
/* We need to use the typedef type */
|
||||||
Delete(tt);
|
Delete(tt);
|
||||||
tt = td;
|
|
||||||
break;
|
break;
|
||||||
} else if (td) {
|
} else if (td) {
|
||||||
Delete(tt);
|
Delete(tt);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue