Skip to content

Commit

Permalink
Deprecated 2023 app version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
s0phialiu committed Oct 22, 2023
1 parent f203139 commit 64b0885
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions HackIllinois/FlowControllers/HIApplicationStateController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class HIApplicationStateController {
func initalize() {
window.makeKeyAndVisible()
resetPersistentDataIfNeeded()
reset2023IfNeeded()
recoverUserIfPossible()
recoverProfileIfPossible()
onboardingViewController.shouldDisplayAnimationOnNextAppearance = user == nil
Expand All @@ -51,15 +50,6 @@ class HIApplicationStateController {

// MARK: - API
extension HIApplicationStateController {
func reset2023IfNeeded() {
let didReset = UserDefaults.standard.object(forKey: "didReset2023") as? Bool ?? false
if !didReset {
_ = Keychain.default.purge()
HICoreDataController.shared.purge()
UserDefaults.standard.set(true, forKey: "didReset2023")
logoutUser()
}
}
func resetPersistentDataIfNeeded() {
guard !UserDefaults.standard.bool(forKey: HIConstants.APPLICATION_INSTALLED_KEY) else { return }
_ = Keychain.default.purge()
Expand Down

0 comments on commit 64b0885

Please sign in to comment.