about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2014-05-21 14:48:33 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2014-06-18 16:41:52 +0200
commit4d82456f69d858bb8ebd7bfc508365cf983eea54 (patch)
tree1dbcae5ec5d7ac697b13b0dbaec09a01b5f239a6
parent75340f41763c4166172af24c8db676c1da97910d (diff)
downloadrust-4d82456f69d858bb8ebd7bfc508365cf983eea54.tar.gz
rust-4d82456f69d858bb8ebd7bfc508365cf983eea54.zip
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.
-rw-r--r--src/librustc/middle/cfg/mod.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/librustc/middle/cfg/mod.rs b/src/librustc/middle/cfg/mod.rs
index f0b912fb87b..bb758ec7c38 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<CFGNodeData>;
 
 pub type CFGEdge = graph::Edge<CFGEdgeData>;
 
-pub struct CFGIndices {
-    entry: CFGIndex,
-    exit: CFGIndex,
-}
-
 impl CFG {
     pub fn new(tcx: &ty::ctxt,
                blk: &ast::Block) -> CFG {