Skip to content

Commit 75973c5

Browse files
Mikkel Sørensenkirre-bylund
authored andcommitted
Revert "Add GetLastActivePlatform() which returns the last used platform"
This reverts commit 4b7cd96.
1 parent 686bd54 commit 75973c5

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4607,22 +4607,6 @@ public static void Ping(Action<LootLockerPingResponse> onComplete)
46074607
LootLockerAPIManager.Ping(onComplete);
46084608
}
46094609

4610-
/// <summary>
4611-
/// Get the Platform the user last used. This can be used to know what login method to prompt.
4612-
/// </summary>
4613-
/// <returns>The platform that was last used by the user</returns>
4614-
public static Platforms GetLastActivePlatform()
4615-
{
4616-
if (CurrentPlatform.Get() == Platforms.None)
4617-
{
4618-
return (Platforms)PlayerPrefs.GetInt("LastActivePlatform");
4619-
}
4620-
else
4621-
{
4622-
return CurrentPlatform.Get();
4623-
}
4624-
}
4625-
46264610

46274611
#endregion
46284612
}

Runtime/Game/Platforms/PlatformManager.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public static string GetFriendlyString()
105105

106106
public static void Set(Platforms platform)
107107
{
108-
PlayerPrefs.SetInt("LastActivePlatform", (int)platform);
109108
current = GetPlatformRepresentation(platform);
110109
}
111110

0 commit comments

Comments
 (0)