syntax: Remove cdir_syntax. Unused
This commit is contained in:
parent
68c73dc5f2
commit
ddbff6fd2a
@ -276,8 +276,6 @@ enum crate_directive_ {
|
||||
// exists only to preserve the view items in order in case we decide to
|
||||
// pretty-print crates in the future.
|
||||
cdir_view_item(@view_item),
|
||||
|
||||
cdir_syntax(@path),
|
||||
}
|
||||
|
||||
type crate_directive = spanned<crate_directive_>;
|
||||
|
@ -170,7 +170,6 @@ fn noop_fold_crate_directive(cd: crate_directive_, fld: ast_fold) ->
|
||||
/* FIXME (#2543) */ copy attrs)
|
||||
}
|
||||
cdir_view_item(vi) => cdir_view_item(fld.fold_view_item(vi)),
|
||||
cdir_syntax(_) => copy cd
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,6 @@ fn eval_crate_directive(cx: ctx, cdir: @ast::crate_directive, prefix: &Path,
|
||||
items.push(i);
|
||||
}
|
||||
ast::cdir_view_item(vi) => view_items.push(vi),
|
||||
ast::cdir_syntax(*) => ()
|
||||
}
|
||||
}
|
||||
//
|
||||
|
@ -100,7 +100,6 @@ fn visit_crate_directive<E>(cd: @crate_directive, e: E, v: vt<E>) {
|
||||
visit_crate_directive(*cdir, e, v);
|
||||
},
|
||||
cdir_view_item(vi) => v.visit_view_item(vi, e, v),
|
||||
cdir_syntax(_) => ()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user