Skip to content

Commit

Permalink
refactor: remove deprecated account_id_to_shard_id (near#12531)
Browse files Browse the repository at this point in the history
This is a continuation of [the previous refactor pull
request](near#12526).

Deprecated `account_id_to_shard_id` function is removed
  • Loading branch information
miloserdow authored Nov 28, 2024
1 parent e2d22c5 commit 137ab8c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/primitives/src/shard_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -773,12 +773,6 @@ impl ShardLayout {
}
}

/// Maps an account to the shard that it belongs to given a shard layout.
#[deprecated(note = "Please use `ShardLayout::account_id_to_shard_id` method instead")]
pub fn account_id_to_shard_id(account_id: &AccountId, shard_layout: &ShardLayout) -> ShardId {
shard_layout.account_id_to_shard_id(account_id)
}

/// Maps an account to the shard that it belongs to given a shard_layout
pub fn account_id_to_shard_uid(account_id: &AccountId, shard_layout: &ShardLayout) -> ShardUId {
ShardUId::from_shard_id_and_layout(
Expand Down

0 comments on commit 137ab8c

Please sign in to comment.