2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ impl<R> Transitions<R>
38
38
where
39
39
R : Ref ,
40
40
{
41
- #[ allow ( dead_code ) ]
41
+ #[ cfg ( test ) ]
42
42
fn insert ( & mut self , transition : Transition < R > , state : State ) {
43
43
match transition {
44
44
Transition :: Byte ( b) => {
@@ -86,15 +86,6 @@ impl<R> Dfa<R>
86
86
where
87
87
R : Ref ,
88
88
{
89
- #[ allow( dead_code) ]
90
- pub ( crate ) fn unit ( ) -> Self {
91
- let transitions: Map < State , Transitions < R > > = Map :: default ( ) ;
92
- let start = State :: new ( ) ;
93
- let accepting = start;
94
-
95
- Self { transitions, start, accepting }
96
- }
97
-
98
89
#[ cfg( test) ]
99
90
pub ( crate ) fn bool ( ) -> Self {
100
91
let mut transitions: Map < State , Transitions < R > > = Map :: default ( ) ;
Original file line number Diff line number Diff line change @@ -159,11 +159,6 @@ where
159
159
}
160
160
Self { transitions, start, accepting }
161
161
}
162
-
163
- #[ allow( dead_code) ]
164
- pub ( crate ) fn edges_from ( & self , start : State ) -> Option < & Map < Transition < R > , Set < State > > > {
165
- self . transitions . get ( & start)
166
- }
167
162
}
168
163
169
164
impl State {
0 commit comments