File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed
Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,4 @@ import Networking
77//
88public enum AccountAction : Action {
99 case synchronizeAccount( onCompletion: ( Account ? , Error ? ) -> Void )
10- case retrieveAccount( userId: Int , onCompletion: ( Account ? ) -> Void )
1110}
Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ public class AccountStore: Store {
2525 switch action {
2626 case . synchronizeAccount( let onCompletion) :
2727 synchronizeAccount ( onCompletion: onCompletion)
28- case . retrieveAccount( let userId, let onCompletion) :
29- retrieveAccount ( userId: userId, onCompletion: onCompletion)
3028 }
3129 }
3230}
@@ -51,13 +49,6 @@ extension AccountStore {
5149 onCompletion ( account, nil )
5250 }
5351 }
54-
55- /// Retrieves the account associated with a given User ID (if any!).
56- ///
57- func retrieveAccount( userId: Int , onCompletion: ( Account ? ) -> Void ) {
58- let account = loadStoredAccount ( userId: userId) ? . toReadOnly ( )
59- onCompletion ( account)
60- }
6152}
6253
6354
You can’t perform that action at this time.
0 commit comments