Skip to content

Commit f040b83

Browse files
JohannesLootkirre-bylund
authored andcommitted
Removed more leaking code
1 parent c80c9a2 commit f040b83

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,28 +2352,6 @@ public static void UpdateOrCreateKeyValue(string key, string value, Action<LootL
23522352
LootLockerAPIManager.UpdateOrCreateKeyValue(data, onComplete);
23532353
}
23542354

2355-
/// <summary>
2356-
/// Update or create a key/value pair in the player storage for the currently active player.
2357-
/// </summary>
2358-
/// <param name="key">Name of the key</param>
2359-
/// <param name="value">Value of the key</param>
2360-
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerGetPersistentStoragResponse</param>
2361-
public static void UpdateOrCreateKeyValue(Dictionary<string,string> keyValuePairs, bool isPublic, Action<LootLockerGetPersistentStoragResponse> onComplete)
2362-
{
2363-
if (!CheckInitialized())
2364-
{
2365-
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerGetPersistentStoragResponse>());
2366-
return;
2367-
}
2368-
LootLockerGetPersistentStorageRequest data = new LootLockerGetPersistentStorageRequest();
2369-
// Add all the key value pairs to the payload
2370-
foreach (var keyValuePair in keyValuePairs)
2371-
{
2372-
data.AddToPayload(new LootLockerPayload { key = keyValuePair.Key, value = keyValuePair.Value });
2373-
}
2374-
LootLockerAPIManager.UpdateOrCreateKeyValue(data, onComplete);
2375-
}
2376-
23772355
/// <summary>
23782356
/// Update or create multiple key/value pairs in the player storage for the currently active player.
23792357
/// </summary>

Runtime/Game/Requests/PersitentPlayerStorageRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static void GetSingleKeyPersistentStorage(LootLockerGetRequest data, Acti
6767
LootLockerServerRequest.CallAPI(getVariable, endPoint.httpMethod, null, onComplete: (serverResponse) => { LootLockerResponse.Deserialize(onComplete, serverResponse); });
6868
}
6969

70-
public static void UpdateOrCreateKeyValue(LootLockerGetPersistentStorageRequest data, Action<LootLockerGetPersistentStoragResponse> onComplete, bool isPublic = false)
70+
public static void UpdateOrCreateKeyValue(LootLockerGetPersistentStorageRequest data, Action<LootLockerGetPersistentStoragResponse> onComplete)
7171
{
7272
if(data == null)
7373
{

0 commit comments

Comments
 (0)