Skip to content

Commit 867bc0d

Browse files
committed
Nukes AccountAction.retrieveAccount
1 parent c5595ec commit 867bc0d

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

Yosemite/Yosemite/Actions/AccountAction.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ import Networking
77
//
88
public enum AccountAction: Action {
99
case synchronizeAccount(onCompletion: (Account?, Error?) -> Void)
10-
case retrieveAccount(userId: Int, onCompletion: (Account?) -> Void)
1110
}

Yosemite/Yosemite/Stores/AccountStore.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)