From 0e8ee9c0552e1d99c5d2c0423d8cee29d4262b56 Mon Sep 17 00:00:00 2001 From: Ayush Tiwari Date: Fri, 6 Oct 2023 17:35:37 +0530 Subject: [PATCH] refactor: removed dead code --- .../contracts/royalties-registry/RoyaltiesRegistry.sol | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/marketplace/contracts/royalties-registry/RoyaltiesRegistry.sol b/packages/marketplace/contracts/royalties-registry/RoyaltiesRegistry.sol index e362e66558..60fc935d81 100644 --- a/packages/marketplace/contracts/royalties-registry/RoyaltiesRegistry.sol +++ b/packages/marketplace/contracts/royalties-registry/RoyaltiesRegistry.sol @@ -207,13 +207,10 @@ contract RoyaltiesRegistry is IRoyaltiesProvider, OwnableUpgradeable { if (royaltiesType == ROYALTIES_TYPE_EIP2981) { return getRoyaltiesEIP2981(token, tokenId); } - // case royaltiesType = 4, unknown/empty royalties - if (royaltiesType == ROYALTIES_TYPE_UNSUPPORTED_NONEXISTENT) { + else { return new LibPart.Part[](0); } - - revert("something wrong in getRoyalties"); } /// @notice tries to get royalties EIP-2981 for token and tokenId