jets: further cleanups.

This commit is contained in:
Elliot Glaysher 2020-05-05 10:45:22 -07:00
parent d204c1d665
commit 239cd93f3a
2 changed files with 2 additions and 11 deletions

View File

@ -332,11 +332,6 @@ u3we_scow(u3_noun cor)
case c3__uw: case c3__uw:
return _print_uw(atom); return _print_uw(atom);
/* // %ta is used once in link.hoon. don't bother. */
/* case c3__tas: */
/* return _parse_tas(txt); */
default: default:
return u3_none; return u3_none;
} }

View File

@ -75,7 +75,7 @@ u3_noun combine(u3_noun p, u3_noun q)
return 0; return 0;
} }
u3_noun ret = u3nc(0, u3qa_add(u3k(u3t(p)), u3qa_mul(256, u3k(u3t(q))))); u3_noun ret = u3nc(0, u3qa_add(u3t(p), u3qa_mul(256, u3t(q))));
u3z(p); u3z(p);
u3z(q); u3z(q);
@ -109,11 +109,7 @@ _parse_p(u3_noun cor, u3_noun txt) {
c3_c* c = u3r_string(txt); c3_c* c = u3r_string(txt);
c3_c* cur = c; c3_c* cur = c;
if (cur[0] != '~') { CONSUME('~');
c3_free(c);
return 0;
}
cur++;
// We at least have a sig prefix. We're now going to parse tuples of three // We at least have a sig prefix. We're now going to parse tuples of three
// lowercase letters. Our naming pattern for the pieces we read is [a b c d // lowercase letters. Our naming pattern for the pieces we read is [a b c d