about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2015-01-04 10:42:51 -0500
committerJorge Aparicio <japaricious@gmail.com>2015-01-05 17:22:16 -0500
commit5d6a6f59575ab389bb6c2f199e5723923a68ab1d (patch)
tree560ee8820015bb615f9a883f1e916f41e3d0c389
parent799332fa3f968544831ed66e4e32bf331beddbc0 (diff)
rustc: remove dead code
-rw-r--r--src/librustc/middle/infer/coercion.rs1
-rw-r--r--src/librustc/middle/ty.rs17
2 files changed, 0 insertions, 18 deletions
diff --git a/src/librustc/middle/infer/coercion.rs b/src/librustc/middle/infer/coercion.rs
index 12f34a9ae54..65de3a083d2 100644
--- a/src/librustc/middle/infer/coercion.rs
+++ b/src/librustc/middle/infer/coercion.rs
@@ -71,7 +71,6 @@ use middle::ty::{self, Ty};
 use util::ppaux;
 use util::ppaux::Repr;
 
-use syntax::abi;
 use syntax::ast;
 
 // Note: Coerce is not actually a combiner, in that it does not
diff --git a/src/librustc/middle/ty.rs b/src/librustc/middle/ty.rs
index 715151434f2..7cda6c21853 100644
--- a/src/librustc/middle/ty.rs
+++ b/src/librustc/middle/ty.rs
@@ -3501,23 +3501,6 @@ pub fn type_contents<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> TypeContents {
         b | (TC::ReachesBorrowed).when(region != ty::ReStatic)
     }
 
-    fn closure_contents(cty: &ClosureTy) -> TypeContents {
-        // Closure contents are just like trait contents, but with potentially
-        // even more stuff.
-        let st = object_contents(&cty.bounds);
-
-        let st = match cty.store {
-            UniqTraitStore => {
-                st.owned_pointer()
-            }
-            RegionTraitStore(r, mutbl) => {
-                st.reference(borrowed_contents(r, mutbl))
-            }
-        };
-
-        st
-    }
-
     fn object_contents(bounds: &ExistentialBounds) -> TypeContents {
         // These are the type contents of the (opaque) interior. We
         // make no assumptions (other than that it cannot have an