]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/regionmanip.rs
typeck: remove dead code
[rust.git] / src / librustc_typeck / check / regionmanip.rs
index e73fa195b04484b6c49ba4ce4ba89e8e9a3115a2..7a9961e750c217fb30deed5c03beea4257fa5263 100644 (file)
@@ -319,22 +319,6 @@ fn accumulate_from_adt(&mut self,
         }
     }
 
-    fn accumulate_from_closure_ty(&mut self,
-                                  ty: Ty<'tcx>,
-                                  c: &ty::ClosureTy<'tcx>)
-    {
-        match c.store {
-            ty::RegionTraitStore(r_b, _) => {
-                self.push_region_constraint_from_top(r_b);
-            }
-            ty::UniqTraitStore => { }
-        }
-
-        let required_region_bounds =
-            ty::object_region_bounds(self.tcx, None, c.bounds.builtin_bounds);
-        self.accumulate_from_object_ty(ty, c.bounds.region_bound, required_region_bounds);
-    }
-
     fn accumulate_from_object_ty(&mut self,
                                  ty: Ty<'tcx>,
                                  region_bound: ty::Region,