Skip to content

Commit 57d9449

Browse files
committed
Remove unused eval function. Issue #604
1 parent b79ea48 commit 57d9449

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/comp/syntax/parse/eval.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,6 @@ fn eval_crate_directives_to_mod(ctx cx,
4141
ret rec(view_items=view_items, items=items);
4242
}
4343

44-
fn eval_crate_directive_block(ctx cx, &ast::block blk, str prefix,
45-
&mutable vec[@ast::view_item] view_items,
46-
&mutable vec[@ast::item] items) {
47-
for (@ast::stmt s in blk.node.stmts) {
48-
alt (s.node) {
49-
case (ast::stmt_crate_directive(?cdir)) {
50-
eval_crate_directive(cx, cdir, prefix, view_items, items);
51-
}
52-
case (_) {
53-
codemap::emit_warning
54-
(some(s.span), "unsupported stmt in crate-directive block",
55-
cx.sess.cm);
56-
}
57-
}
58-
}
59-
}
60-
6144
fn eval_crate_directive(ctx cx, @ast::crate_directive cdir, str prefix,
6245
&mutable vec[@ast::view_item] view_items,
6346
&mutable vec[@ast::item] items) {

0 commit comments

Comments
 (0)