about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-05-09 23:52:50 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-05-10 04:57:50 +0000
commitdf572fcf4eea79baddc0136573cbbeed88db001e (patch)
treeb4a667f57a26147c84fc2f598481648eccf726be
parenta4d2424cc304e97f553c6d8eef17a24dc2f12c01 (diff)
downloadrust-df572fcf4eea79baddc0136573cbbeed88db001e.tar.gz
rust-df572fcf4eea79baddc0136573cbbeed88db001e.zip
Remove unused function `lower_opt_bounds`
-rw-r--r--src/librustc/hir/lowering.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/librustc/hir/lowering.rs b/src/librustc/hir/lowering.rs
index 0026412013c..e4b87ab8bf3 100644
--- a/src/librustc/hir/lowering.rs
+++ b/src/librustc/hir/lowering.rs
@@ -593,12 +593,6 @@ pub fn lower_mt(lctx: &LoweringContext, mt: &MutTy) -> hir::MutTy {
     }
 }
 
-pub fn lower_opt_bounds(lctx: &LoweringContext,
-                        b: &Option<TyParamBounds>)
-                        -> Option<hir::TyParamBounds> {
-    b.as_ref().map(|ref bounds| lower_bounds(lctx, bounds))
-}
-
 fn lower_bounds(lctx: &LoweringContext, bounds: &TyParamBounds) -> hir::TyParamBounds {
     bounds.iter().map(|bound| lower_ty_param_bound(lctx, bound)).collect()
 }