Skip to content

Commit

Permalink
Remove unused eval function. Issue #604
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Jul 5, 2011
1 parent b79ea48 commit 57d9449
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/comp/syntax/parse/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,6 @@ fn eval_crate_directives_to_mod(ctx cx,
ret rec(view_items=view_items, items=items);
}

fn eval_crate_directive_block(ctx cx, &ast::block blk, str prefix,
&mutable vec[@ast::view_item] view_items,
&mutable vec[@ast::item] items) {
for (@ast::stmt s in blk.node.stmts) {
alt (s.node) {
case (ast::stmt_crate_directive(?cdir)) {
eval_crate_directive(cx, cdir, prefix, view_items, items);
}
case (_) {
codemap::emit_warning
(some(s.span), "unsupported stmt in crate-directive block",
cx.sess.cm);
}
}
}
}

fn eval_crate_directive(ctx cx, @ast::crate_directive cdir, str prefix,
&mutable vec[@ast::view_item] view_items,
&mutable vec[@ast::item] items) {
Expand Down

0 comments on commit 57d9449

Please sign in to comment.