Skip to content

Commit

Permalink
Remove Unused Internal Function (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0dot authored Aug 23, 2024
1 parent c09ceeb commit b5b8264
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/account/ModuleManagerInternals.sol
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,6 @@ abstract contract ModuleManagerInternals is IModularAccount {
_executionData.allowGlobalValidation = false;
}

function _addValidationFunction(ValidationConfig validationConfig, bytes4[] memory selectors) internal {
ValidationData storage _validationData =
getAccountStorage().validationData[validationConfig.moduleEntity()];

if (validationConfig.isGlobal()) {
_validationData.isGlobal = true;
}

if (validationConfig.isSignatureValidation()) {
_validationData.isSignatureValidation = true;
}

// Add the validation function to the selectors.
uint256 length = selectors.length;
for (uint256 i = 0; i < length; ++i) {
_validationData.selectors.add(toSetValue(selectors[i]));
}
}

function _removeValidationFunction(ModuleEntity validationFunction) internal {
ValidationData storage _validationData = getAccountStorage().validationData[validationFunction];

Expand Down

0 comments on commit b5b8264

Please sign in to comment.