Skip to content

Commit

Permalink
refactor: removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
capedcrusader21 committed Oct 6, 2023
1 parent 08ebd56 commit 0e8ee9c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e8ee9c

Please sign in to comment.