Skip to content

Commit 53b70a8

Browse files
committed
middle: trans: tvec: remove dead code
1 parent 4bc2c3b commit 53b70a8

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/librustc/middle/trans/tvec.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,6 @@ pub fn get_fill(bcx: &Block, vptr: ValueRef) -> ValueRef {
5555
Load(bcx, GEPi(bcx, vptr, [0u, abi::vec_elt_fill]))
5656
}
5757

58-
pub fn set_fill(bcx: &Block, vptr: ValueRef, fill: ValueRef) {
59-
Store(bcx, fill, GEPi(bcx, vptr, [0u, abi::vec_elt_fill]));
60-
}
61-
62-
pub fn get_alloc(bcx: &Block, vptr: ValueRef) -> ValueRef {
63-
Load(bcx, GEPi(bcx, vptr, [0u, abi::vec_elt_alloc]))
64-
}
65-
6658
pub fn get_dataptr(bcx: &Block, vptr: ValueRef) -> ValueRef {
6759
let _icx = push_ctxt("tvec::get_dataptr");
6860
GEPi(bcx, vptr, [0u, abi::vec_elt_elems, 0u])
@@ -102,15 +94,6 @@ pub fn alloc_raw<'a>(
10294
}
10395
}
10496

105-
pub fn alloc_uniq_raw<'a>(
106-
bcx: &'a Block<'a>,
107-
unit_ty: ty::t,
108-
fill: ValueRef,
109-
alloc: ValueRef)
110-
-> Result<'a> {
111-
alloc_raw(bcx, unit_ty, fill, alloc, heap_exchange)
112-
}
113-
11497
pub fn alloc_uniq_vec<'a>(
11598
bcx: &'a Block<'a>,
11699
unit_ty: ty::t,
@@ -693,19 +676,6 @@ pub fn iter_vec_raw<'r,
693676
}
694677
}
695678

696-
pub fn iter_vec_uniq<'r,
697-
'b>(
698-
bcx: &'b Block<'b>,
699-
vptr: ValueRef,
700-
vec_ty: ty::t,
701-
fill: ValueRef,
702-
f: iter_vec_block<'r,'b>)
703-
-> &'b Block<'b> {
704-
let _icx = push_ctxt("tvec::iter_vec_uniq");
705-
let data_ptr = get_dataptr(bcx, vptr);
706-
iter_vec_raw(bcx, data_ptr, vec_ty, fill, f)
707-
}
708-
709679
pub fn iter_vec_unboxed<'r,
710680
'b>(
711681
bcx: &'b Block<'b>,

0 commit comments

Comments
 (0)