Skip to content

Commit 9654ae9

Browse files
committed
Remove unused function
1 parent 72bcf92 commit 9654ae9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/librustc/ty/context.rs

-8
Original file line numberDiff line numberDiff line change
@@ -1061,14 +1061,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
10611061
self.global_arenas.adt_def.alloc(def)
10621062
}
10631063

1064-
pub fn alloc_byte_array(self, bytes: &[u8]) -> &'gcx [u8] {
1065-
if bytes.is_empty() {
1066-
&[]
1067-
} else {
1068-
self.global_interners.arena.alloc_slice(bytes)
1069-
}
1070-
}
1071-
10721064
pub fn intern_const_alloc(
10731065
self,
10741066
alloc: Allocation,

0 commit comments

Comments
 (0)