Skip to content

Commit

Permalink
Clean up getScopeName interface and test impls (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
robdoesstuff committed Jan 12, 2024
1 parent da81765 commit dad0816
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 51 deletions.
7 changes: 0 additions & 7 deletions src/Patchwork1155Patch.sol
Expand Up @@ -31,13 +31,6 @@ abstract contract Patchwork1155Patch is Patchwork721, IPatchwork1155Patch {
super.supportsInterface(interfaceID);
}

/**
@dev See {IPatchwork721-getScopeName}
*/
function getScopeName() public view virtual override(Patchwork721, IPatchworkScoped) returns (string memory) {
return _scopeName;
}

/**
@notice stores a patch
@param tokenId the tokenId of the patch
Expand Down
7 changes: 0 additions & 7 deletions src/PatchworkAccountPatch.sol
Expand Up @@ -23,13 +23,6 @@ abstract contract PatchworkAccountPatch is Patchwork721, IPatchworkAccountPatch
super.supportsInterface(interfaceID);
}

/**
@dev See {IPatchwork721-getScopeName}
*/
function getScopeName() public view virtual override(Patchwork721, IPatchworkScoped) returns (string memory) {
return _scopeName;
}

/**
@notice stores a patch
@param tokenId the tokenId of the patch
Expand Down
7 changes: 0 additions & 7 deletions src/PatchworkFragmentMulti.sol
Expand Up @@ -20,13 +20,6 @@ abstract contract PatchworkFragmentMulti is Patchwork721, IPatchworkMultiAssigna
/// A mapping from token IDs in this contract to their assignments.
mapping(uint256 => AssignmentStorage) internal _assignmentStorage;

/**
@dev See {IPatchwork721-getScopeName}
*/
function getScopeName() public view virtual override (Patchwork721, IPatchworkScoped) returns (string memory) {
return _scopeName;
}

/**
@dev See {IERC165-supportsInterface}
*/
Expand Down
7 changes: 0 additions & 7 deletions src/PatchworkFragmentSingle.sol
Expand Up @@ -19,13 +19,6 @@ abstract contract PatchworkFragmentSingle is Patchwork721, IPatchworkSingleAssig
/// A mapping from token IDs in this contract to their assignments.
mapping(uint256 => Assignment) internal _assignments;

/**
@dev See {IPatchworkScoped-getScopeName}
*/
function getScopeName() public view virtual override (Patchwork721, IPatchworkScoped) returns (string memory) {
return _scopeName;
}

/**
@dev See {IERC165-supportsInterface}
*/
Expand Down
7 changes: 0 additions & 7 deletions src/PatchworkPatch.sol
Expand Up @@ -29,13 +29,6 @@ abstract contract PatchworkPatch is Patchwork721, IPatchworkPatch {
super.supportsInterface(interfaceID);
}

/**
@dev See {IPatchwork721-getScopeName}
*/
function getScopeName() public view virtual override(Patchwork721, IPatchworkScoped) returns (string memory) {
return _scopeName;
}

/**
@dev will return the current owner of the patched address+tokenId
@dev See {IERC721-ownerOf}
Expand Down
4 changes: 0 additions & 4 deletions test/nfts/TestDynamicArrayLiteRefNFT.sol
Expand Up @@ -55,10 +55,6 @@ contract TestDynamicArrayLiteRefNFT is Patchwork721, PatchworkLiteRef, IPatchwor
_manager = manager_;
}

function getScopeName() public view override (Patchwork721, IPatchworkScoped) returns (string memory scopeName) {
return Patchwork721.getScopeName();
}

function mint(address to, bytes calldata /* data */) public payable returns (uint256 tokenId) {
tokenId = _nextTokenId;
_nextTokenId++;
Expand Down
4 changes: 0 additions & 4 deletions test/nfts/TestFragmentLiteRefNFT.sol
Expand Up @@ -46,10 +46,6 @@ contract TestFragmentLiteRefNFT is PatchworkFragmentSingle, PatchworkLiteRef, IP
interfaceID == type(IPatchworkMintable).interfaceId;
}

function getScopeName() public view override (PatchworkFragmentSingle, IPatchworkScoped) returns (string memory scopeName) {
return PatchworkFragmentSingle.getScopeName();
}

function mint(address to, bytes calldata /* data */) public payable returns (uint256 tokenId) {
tokenId = _nextTokenId;
_nextTokenId++;
Expand Down
4 changes: 0 additions & 4 deletions test/nfts/TestMultiFragmentNFT.sol
Expand Up @@ -20,10 +20,6 @@ contract TestMultiFragmentNFT is PatchworkFragmentMulti, IPatchworkMintable {
interfaceID == type(IPatchworkMintable).interfaceId;
}

function getScopeName() public view override (PatchworkFragmentMulti, IPatchworkScoped) returns (string memory scopeName) {
return PatchworkFragmentMulti.getScopeName();
}

function mint(address to, bytes calldata /* data */) public payable returns (uint256 tokenId) {
tokenId = _nextTokenId;
_nextTokenId++;
Expand Down
4 changes: 0 additions & 4 deletions test/nfts/TestPatchFragmentNFT.sol
Expand Up @@ -46,10 +46,6 @@ contract TestPatchFragmentNFT is PatchworkPatch, PatchworkFragmentSingle {
_manager = manager_;
}

function getScopeName() public view virtual override(PatchworkPatch, PatchworkFragmentSingle) returns (string memory) {
return _scopeName;
}

function setLocked(uint256 tokenId, bool locked_) public view virtual override(PatchworkPatch, PatchworkFragmentSingle) {
return PatchworkPatch.setLocked(tokenId, locked_);
}
Expand Down

0 comments on commit dad0816

Please sign in to comment.