Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pnkfelix committed Jun 18, 2014
1 parent 75340f4 commit 4d82456
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/librustc/middle/cfg/mod.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 4d82456

Please sign in to comment.