Skip to content

Commit d24894e

Browse files
committed
Remove unused empty_fn_ty from rustc::front::test
1 parent 4ef2c37 commit d24894e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/comp/front/test.rs

-9
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,6 @@ fn mk_tests(cx: test_ctxt) -> @ast::item {
213213
ret @item;
214214
}
215215

216-
fn empty_fn_ty() -> ast::ty {
217-
let proto = ast::proto_bare;
218-
let input_ty = [];
219-
let ret_ty = @nospan(ast::ty_nil);
220-
let cf = ast::return_val;
221-
let constrs = [];
222-
ret nospan(ast::ty_fn(proto, input_ty, ret_ty, cf, constrs));
223-
}
224-
225216
// The ast::ty of [std::test::test_desc]
226217
fn mk_test_desc_vec_ty(cx: test_ctxt) -> @ast::ty {
227218
let test_fn_ty: ast::ty = nospan(

0 commit comments

Comments
 (0)