Skip to content

Commit 4d82456

Browse files
committed
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.
1 parent 75340f4 commit 4d82456

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/librustc/middle/cfg/mod.rs

-7
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Uses `Graph` as the underlying representation.
1515
1616
*/
1717

18-
#![allow(dead_code)] // still a WIP, #6298
19-
2018
use middle::graph;
2119
use middle::ty;
2220
use syntax::ast;
@@ -48,11 +46,6 @@ pub type CFGNode = graph::Node<CFGNodeData>;
4846

4947
pub type CFGEdge = graph::Edge<CFGEdgeData>;
5048

51-
pub struct CFGIndices {
52-
entry: CFGIndex,
53-
exit: CFGIndex,
54-
}
55-
5649
impl CFG {
5750
pub fn new(tcx: &ty::ctxt,
5851
blk: &ast::Block) -> CFG {

0 commit comments

Comments
 (0)