From 97af6f7484d2b0e6e44236ce25542bd946c605ac Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Mon, 16 Jan 2023 17:46:11 +0100 Subject: [PATCH] [marketplace] remove dead code --- contracts/Marketplace.sol | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/contracts/Marketplace.sol b/contracts/Marketplace.sol index 0586b16..97e391d 100644 --- a/contracts/Marketplace.sol +++ b/contracts/Marketplace.sol @@ -211,18 +211,6 @@ contract Marketplace is Collateral, Proofs, StateRetrieval { require(token.transfer(msg.sender, amount), "Withdraw failed"); } - /// @notice Return id of request that slot belongs to - /// @dev Returns requestId that is mapped to the slotId - /// @param slotId id of the slot - /// @return if of the request the slot belongs to - function _getRequestIdForSlot( - SlotId slotId - ) internal view returns (RequestId) { - Slot memory slot = _slot(slotId); - require(RequestId.unwrap(slot.requestId) != 0, "Missing request id"); - return slot.requestId; - } - function getHost(SlotId slotId) public view returns (address) { return slots[slotId].host; }