From 9654ae9c9973253e0e87bff9fd8f79be87492c64 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Fri, 28 Dec 2018 20:45:51 +0100 Subject: [PATCH] Remove unused function --- src/librustc/ty/context.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/librustc/ty/context.rs b/src/librustc/ty/context.rs index 26f0ff0ffa265..74fa5363fb2f6 100644 --- a/src/librustc/ty/context.rs +++ b/src/librustc/ty/context.rs @@ -1061,14 +1061,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> { self.global_arenas.adt_def.alloc(def) } - pub fn alloc_byte_array(self, bytes: &[u8]) -> &'gcx [u8] { - if bytes.is_empty() { - &[] - } else { - self.global_interners.arena.alloc_slice(bytes) - } - } - pub fn intern_const_alloc( self, alloc: Allocation,