From 6f35d26b8b0ea7bba1b2a3c319d0ef1b15074ae0 Mon Sep 17 00:00:00 2001 From: Yang Chun Ung Date: Tue, 24 Dec 2024 10:46:30 +0900 Subject: [PATCH] Delete not used GetStateBulkAsync interface --- nekoyume/Assets/_Scripts/Blockchain/Agent.cs | 12 ------------ nekoyume/Assets/_Scripts/Blockchain/IAgent.cs | 4 ---- nekoyume/Assets/_Scripts/Blockchain/RPCAgent.cs | 5 ----- 3 files changed, 21 deletions(-) diff --git a/nekoyume/Assets/_Scripts/Blockchain/Agent.cs b/nekoyume/Assets/_Scripts/Blockchain/Agent.cs index 7bf44f3e9d1..32787cb0311 100644 --- a/nekoyume/Assets/_Scripts/Blockchain/Agent.cs +++ b/nekoyume/Assets/_Scripts/Blockchain/Agent.cs @@ -355,18 +355,6 @@ public async Task> GetAvatarStatesAsync( return dict; } - public async Task> GetStateBulkAsync(Address accountAddress, IEnumerable
addressList) - { - var dict = new Dictionary(); - foreach (var address in addressList) - { - var result = await await Task.FromResult(GetStateAsync(accountAddress, address)); - dict[address] = result; - } - - return dict; - } - public async Task> GetStateBulkAsync( HashDigest stateRootHash, Address accountAddress, diff --git a/nekoyume/Assets/_Scripts/Blockchain/IAgent.cs b/nekoyume/Assets/_Scripts/Blockchain/IAgent.cs index c862c816f08..e5a560f6a7c 100644 --- a/nekoyume/Assets/_Scripts/Blockchain/IAgent.cs +++ b/nekoyume/Assets/_Scripts/Blockchain/IAgent.cs @@ -108,10 +108,6 @@ Task> GetAvatarStatesAsync( HashDigest stateRootHash, IEnumerable
addressList); - Task> GetStateBulkAsync( - Address accountAddress, - IEnumerable
addressList); - Task> GetStateBulkAsync( HashDigest stateRootHash, Address accountAddress, diff --git a/nekoyume/Assets/_Scripts/Blockchain/RPCAgent.cs b/nekoyume/Assets/_Scripts/Blockchain/RPCAgent.cs index 1ccadce43f5..8cdd8549c36 100644 --- a/nekoyume/Assets/_Scripts/Blockchain/RPCAgent.cs +++ b/nekoyume/Assets/_Scripts/Blockchain/RPCAgent.cs @@ -607,11 +607,6 @@ private AvatarState ResolveAvatarState(byte[] raw) return avatarState; } - public async Task> GetStateBulkAsync(Address accountAddress, IEnumerable
addressList) - { - throw new NotImplementedException(); - } - public async Task> GetStateBulkAsync( HashDigest stateRootHash, Address accountAddress,