Skip to content

Extfmt cleanup #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 commit merged into from
Mar 3, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/comp/front/extfmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ fn expr_to_str(@ast.expr expr) -> str {

fn parse_fmt_string(str s) -> vec[piece] {
let vec[piece] pieces = vec();
// FIXME: Should be counting codepoints instead of bytes
auto lim = _str.byte_len(s);
auto buf = "";

Expand Down Expand Up @@ -151,7 +150,6 @@ fn peek_num(str s, uint i, uint lim) -> option.t[tup(uint, uint)] {
ret none[tup(uint, uint)];
}

// FIXME: Presumably s.(i) will return char eventually
auto c = s.(i);
if (!('0' as u8 <= c && c <= '9' as u8)) {
ret option.none[tup(uint, uint)];
Expand Down