Skip to content

Commit

Permalink
Remove unreachable statements
Browse files Browse the repository at this point in the history
Solaris Workshop Compiler found a few unreachable statements.

Signed-off-by: Guido Ostkamp <git@ostkamp.fastmail.fm>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Guido Ostkamp authored and Junio C Hamano committed Nov 16, 2007
1 parent 549799b commit a777e9c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion builtin-apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,6 @@ static char *git_header_name(char *line, int llen)
}
}
}
return NULL;
}

/* Verify that we recognize the lines following a git header */
Expand Down
1 change: 0 additions & 1 deletion utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ int print_wrapped_text(const char *text, int indent, int indent2, int width)
text++;
}
}
return w;
}

int is_encoding_utf8(const char *name)
Expand Down
2 changes: 0 additions & 2 deletions xdiff/xdiffi.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ static long xdl_split(unsigned long const *ha1, long off1, long lim1,
return ec;
}
}

return -1;
}


Expand Down
2 changes: 0 additions & 2 deletions xdiff/xutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,6 @@ int xdl_recmatch(const char *l1, long s1, const char *l2, long s2, long flags)
return i1 >= s1 && i2 >= s2;
} else
return s1 == s2 && !memcmp(l1, l2, s1);

return 0;
}

static unsigned long xdl_hash_record_with_whitespace(char const **data,
Expand Down

0 comments on commit a777e9c

Please sign in to comment.