remove dead code

This commit is contained in:
Mark Andrews
2013-01-10 18:12:06 +11:00
parent 4e290bf392
commit e80cd3be84

View File

@@ -229,13 +229,12 @@ locator_pton(const char *src, unsigned char *dst) {
xdigits_u[] = "0123456789ABCDEF";
unsigned char tmp[NS_LOCATORSZ];
unsigned char *tp = tmp, *endp;
const char *xdigits, *curtok;
const char *xdigits;
int ch, seen_xdigits;
unsigned int val;
memset(tp, '\0', NS_LOCATORSZ);
endp = tp + NS_LOCATORSZ;
curtok = src;
seen_xdigits = 0;
val = 0;
while ((ch = *src++) != '\0') {
@@ -252,7 +251,6 @@ locator_pton(const char *src, unsigned char *dst) {
continue;
}
if (ch == ':') {
curtok = src;
if (!seen_xdigits)
return (0);
if (tp + NS_INT16SZ > endp)