Skip to content

Commit ddbff6f

Browse files
committed
syntax: Remove cdir_syntax. Unused
1 parent 68c73dc commit ddbff6f

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

src/libsyntax/ast.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ enum crate_directive_ {
276276
// exists only to preserve the view items in order in case we decide to
277277
// pretty-print crates in the future.
278278
cdir_view_item(@view_item),
279-
280-
cdir_syntax(@path),
281279
}
282280

283281
type crate_directive = spanned<crate_directive_>;

src/libsyntax/fold.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ fn noop_fold_crate_directive(cd: crate_directive_, fld: ast_fold) ->
170170
/* FIXME (#2543) */ copy attrs)
171171
}
172172
cdir_view_item(vi) => cdir_view_item(fld.fold_view_item(vi)),
173-
cdir_syntax(_) => copy cd
174173
}
175174
}
176175

src/libsyntax/parse/eval.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ fn eval_crate_directive(cx: ctx, cdir: @ast::crate_directive, prefix: &Path,
124124
items.push(i);
125125
}
126126
ast::cdir_view_item(vi) => view_items.push(vi),
127-
ast::cdir_syntax(*) => ()
128127
}
129128
}
130129
//

src/libsyntax/visit.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ fn visit_crate_directive<E>(cd: @crate_directive, e: E, v: vt<E>) {
100100
visit_crate_directive(*cdir, e, v);
101101
},
102102
cdir_view_item(vi) => v.visit_view_item(vi, e, v),
103-
cdir_syntax(_) => ()
104103
}
105104
}
106105

0 commit comments

Comments
 (0)