Skip to content

Commit ba6ba75

Browse files
committed
Uncomment Xcode6(Swift1.0)-beta bug not reproduced in Swift 1.1
1 parent 94ac24c commit ba6ba75

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

SwiftState/StateMachine.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,6 @@ public class StateMachine<S: StateType, E: StateEventType>
634634

635635
//--------------------------------------------------
636636
// MARK: - RouteChain
637-
// TODO: move to extension
638637
//--------------------------------------------------
639638
// NOTE: handler is required for addRouteChain
640639

SwiftState/StateRoute.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ public struct StateRoute<S: StateType>
2424

2525
public init(transition: Transition, condition: @autoclosure () -> Bool)
2626
{
27-
// TODO: Xcode6-beta bug? (EXC_BAD_ACCESS)
28-
// self.init(transition: transition, condition: { t in condition() })
29-
30-
self.transition = transition
31-
self.condition = { t in condition() }
27+
self.init(transition: transition, condition: { t in condition() })
3228
}
3329

3430
public func toTransition() -> Transition

SwiftState/StateTransition.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public struct StateTransition<S: StateType>: Hashable
2121

2222
public var hashValue: Int
2323
{
24-
// TODO: is this a good idea?
2524
return self.fromState.hashValue &+ self.toState.hashValue.byteSwapped
2625
}
2726

SwiftState/StateTransitionChain.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ public struct StateTransitionChain<S: StateType>
1515

1616
public init(transition: Transition)
1717
{
18-
// self.init(transitions: [transition]) // TODO: Xcode6-beta bug?
19-
self.states = [transition.fromState, transition.toState]
18+
self.init(transitions: [transition])
2019
}
2120

2221
public init(transitions: [Transition])

0 commit comments

Comments
 (0)