Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit bf66f98

Browse files
committed
refactor: remove natspec in mock bucket dll
1 parent 7366e39 commit bf66f98

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

test/mocks/BucketDLLMock.sol

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,15 @@ library BucketDLLMock {
2020
return BucketDLL.getNext(_list, _id);
2121
}
2222

23-
/// @notice Returns the address at the head of the `_list`.
24-
/// @param _list The list from which to get the head.
25-
/// @return The address of the head.
2623
function getHead(BucketDLL.List storage _list) internal view returns (address) {
2724
return _list.accounts[address(0)].next;
2825
}
2926

30-
/// @notice Returns the address at the tail of the `_list`.
31-
/// @param _list The list from which to get the tail.
32-
/// @return The address of the tail.
33-
function getTail(BucketDLL.List storage _list) internal view returns (address) {
34-
return _list.accounts[address(0)].prev;
35-
}
36-
37-
/// @notice Returns the previous id address from the current `_id`.
38-
/// @param _list The list to search in.
39-
/// @param _id The address of the current account.
40-
/// @return The address of the previous account.
4127
function getPrev(BucketDLL.List storage _list, address _id) internal view returns (address) {
4228
return _list.accounts[_id].prev;
4329
}
30+
31+
function getTail(BucketDLL.List storage _list) internal view returns (address) {
32+
return _list.accounts[address(0)].prev;
33+
}
4434
}

0 commit comments

Comments
 (0)