Skip to content

Commit 4a19c3c

Browse files
committed
---
yaml --- r: 5351 b: refs/heads/master c: 99236d6 h: refs/heads/master i: 5349: ba51912 5347: c746241 5343: 67ac08a v: v3
1 parent 0b3c24b commit 4a19c3c

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: fa74df033d5a6dc4f16a2cb9d075cfba539a2e16
2+
refs/heads/master: 99236d64d05b2f58f11a5d2a55318024365ec1f5

trunk/src/comp/middle/trans.rs

-14
Original file line numberDiff line numberDiff line change
@@ -129,20 +129,6 @@ fn type_of_fn_from_ty(cx: @crate_ctxt, sp: span, fty: ty::t,
129129
ret_ty, ty_param_count);
130130
}
131131

132-
fn type_of_native_fn(cx: @crate_ctxt, sp: span, abi: ast::native_abi,
133-
inputs: [ty::arg], output: ty::t, ty_param_count: uint)
134-
-> TypeRef {
135-
let atys: [TypeRef] = [];
136-
if abi == ast::native_abi_rust {
137-
atys += [T_taskptr(*cx)];
138-
let i = 0u;
139-
while i < ty_param_count { atys += [T_ptr(cx.tydesc_type)]; i += 1u; }
140-
}
141-
atys += type_of_explicit_args(cx, sp, inputs);
142-
check non_ty_var(cx, output);
143-
ret T_fn(atys, type_of_inner(cx, sp, output));
144-
}
145-
146132
fn type_of_inner(cx: @crate_ctxt, sp: span, t: ty::t)
147133
: non_ty_var(cx, t) -> TypeRef {
148134
// Check the cache.

0 commit comments

Comments
 (0)