Skip to content

Commit 8235dfe

Browse files
committed
---
yaml --- r: 3584 b: refs/heads/master c: 57d9449 h: refs/heads/master v: v3
1 parent 4d4c650 commit 8235dfe

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b79ea489e35b7030bba344fcb5d940a660d8012e
2+
refs/heads/master: 57d94493cffbbce70303bdd98dc99b27bcc1c543

trunk/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)