Skip to content

Commit 46a075e

Browse files
committed
refactor: remove unused structs for facet address and function selector positions in DiamondTypes
1 parent 1f451aa commit 46a075e

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/libraries/types/DiamondTypes.sol

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,6 @@ import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet
77
// DIAMOND STORAGE TYPES
88
//////////////////////////////////////////////////////////////////////////*//
99

10-
/// @dev This struct is used to store the facet address and position of the
11-
/// function selector in the facetToSelectorsAndPosition.functionSelectors
12-
/// array.
13-
struct FacetAddressAndPosition {
14-
address facetAddress;
15-
uint96 functionSelectorPosition;
16-
}
17-
18-
/// @dev This struct is used to store the function selectors and position of
19-
/// the facet address in the facetAddresses array.
20-
struct FacetFunctionSelectorsAndPosition {
21-
bytes4[] functionSelectors;
22-
uint256 facetAddressPosition;
23-
}
24-
2510
/// @notice Storage structure for managing facets and interface support in a Diamond (EIP-2535) proxy
2611
/// @dev Tracks function selector mappings, facet lists, and ERC-165 interface support
2712
/// @custom:storage-location erc7201:diamond.standard.diamond.storage

0 commit comments

Comments
 (0)