Skip to content

Commit

Permalink
Delete not used GetStateBulkAsync interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ipdae committed Dec 24, 2024
1 parent 7ead5e7 commit 6f35d26
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
12 changes: 0 additions & 12 deletions nekoyume/Assets/_Scripts/Blockchain/Agent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,18 +355,6 @@ public async Task<Dictionary<Address, AvatarState>> GetAvatarStatesAsync(
return dict;
}

public async Task<Dictionary<Address, IValue>> GetStateBulkAsync(Address accountAddress, IEnumerable<Address> addressList)
{
var dict = new Dictionary<Address, IValue>();
foreach (var address in addressList)
{
var result = await await Task.FromResult(GetStateAsync(accountAddress, address));
dict[address] = result;
}

return dict;
}

public async Task<Dictionary<Address, IValue>> GetStateBulkAsync(
HashDigest<SHA256> stateRootHash,
Address accountAddress,
Expand Down
4 changes: 0 additions & 4 deletions nekoyume/Assets/_Scripts/Blockchain/IAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ Task<Dictionary<Address, AvatarState>> GetAvatarStatesAsync(
HashDigest<SHA256> stateRootHash,
IEnumerable<Address> addressList);

Task<Dictionary<Address, IValue>> GetStateBulkAsync(
Address accountAddress,
IEnumerable<Address> addressList);

Task<Dictionary<Address, IValue>> GetStateBulkAsync(
HashDigest<SHA256> stateRootHash,
Address accountAddress,
Expand Down
5 changes: 0 additions & 5 deletions nekoyume/Assets/_Scripts/Blockchain/RPCAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -607,11 +607,6 @@ private AvatarState ResolveAvatarState(byte[] raw)
return avatarState;
}

public async Task<Dictionary<Address, IValue>> GetStateBulkAsync(Address accountAddress, IEnumerable<Address> addressList)
{
throw new NotImplementedException();
}

public async Task<Dictionary<Address, IValue>> GetStateBulkAsync(
HashDigest<SHA256> stateRootHash,
Address accountAddress,
Expand Down

0 comments on commit 6f35d26

Please sign in to comment.