Remove redundant code highlighted by warnings in gcc-4.6
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12536 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dc5966ffa9
commit
a63d456f8a
25 changed files with 19 additions and 157 deletions
|
|
@ -269,7 +269,6 @@ static void String_clear(DOH *so) {
|
|||
|
||||
static int String_insert(DOH *so, int pos, DOH *str) {
|
||||
String *s;
|
||||
char *nstr;
|
||||
int len;
|
||||
char *data;
|
||||
|
||||
|
|
@ -289,7 +288,6 @@ static int String_insert(DOH *so, int pos, DOH *str) {
|
|||
data = (char *) (str);
|
||||
len = (int) strlen(data);
|
||||
}
|
||||
nstr = s->str;
|
||||
|
||||
if (pos < 0)
|
||||
pos = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue