From 4d82456f69d858bb8ebd7bfc508365cf983eea54 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Wed, 21 May 2014 14:48:33 +0200 Subject: [PATCH] middle::cfg code cleanup. Namely: 1. Now that cfg mod is used for dataflow, we do not need to turn on the `allow(deadcode)` to placate the linter. 2. remove dead struct defn. --- src/librustc/middle/cfg/mod.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/librustc/middle/cfg/mod.rs b/src/librustc/middle/cfg/mod.rs index f0b912fb87bbf..bb758ec7c38b7 100644 --- a/src/librustc/middle/cfg/mod.rs +++ b/src/librustc/middle/cfg/mod.rs @@ -15,8 +15,6 @@ Uses `Graph` as the underlying representation. */ -#![allow(dead_code)] // still a WIP, #6298 - use middle::graph; use middle::ty; use syntax::ast; @@ -48,11 +46,6 @@ pub type CFGNode = graph::Node; pub type CFGEdge = graph::Edge; -pub struct CFGIndices { - entry: CFGIndex, - exit: CFGIndex, -} - impl CFG { pub fn new(tcx: &ty::ctxt, blk: &ast::Block) -> CFG {