From 172ea83adc1e97d1f2fbe72326d1381bf80760bd Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Mon, 22 Jul 2013 13:26:47 -0700 Subject: [PATCH] Get rid of an unused variable warning. --- 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 2ff0c39476fe..843aa2b749cf 100644 --- a/src/librustc/middle/trans/_match.rs +++ b/src/librustc/middle/trans/_match.rs @@ -1279,8 +1279,6 @@ pub fn compile_submatch(bcx: @mut 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;