From 7a6ebb36b0061f68c5122b3f475871239af6aa8a Mon Sep 17 00:00:00 2001 From: OGINO Masanori Date: Wed, 24 Jul 2013 00:03:54 +0900 Subject: [PATCH] Remove unused variables in `compile_submatch`. Just an minor cleanup. Signed-off-by: OGINO Masanori --- src/librustc/middle/trans/_match.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/librustc/middle/trans/_match.rs b/src/librustc/middle/trans/_match.rs index b125232a7aac8..bffc8532af5d8 100644 --- a/src/librustc/middle/trans/_match.rs +++ b/src/librustc/middle/trans/_match.rs @@ -1279,8 +1279,6 @@ pub fn compile_submatch(bcx: block, assert!((m.len() > 0u || chk.is_some())); let _icx = push_ctxt("match::compile_submatch"); let mut bcx = bcx; - let tcx = bcx.tcx(); - let dm = tcx.def_map; if m.len() == 0u { Br(bcx, chk.get()()); return;