]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #7997 : omasanori/rust/cleanup, r=cmr
authorbors <bors@rust-lang.org>
Wed, 24 Jul 2013 18:16:33 +0000 (11:16 -0700)
committerbors <bors@rust-lang.org>
Wed, 24 Jul 2013 18:16:33 +0000 (11:16 -0700)
Just an minor cleanup.

src/librustc/middle/trans/_match.rs

index 2ff0c39476feb80f87b72f0c6b561cff38558d91..843aa2b749cfa58d944299ce5c896e00f2386069 100644 (file)
@@ -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;