Skip to content

Commit

Permalink
fix: remove redundant get function from LegacyAllocation.sol.
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonBoi9001 committed Oct 1, 2024
1 parent 046f4bb commit 4851775
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
pragma solidity 0.8.27;

import { ISubgraphService } from "./interfaces/ISubgraphService.sol";
import { Allocation } from "./libraries/Allocation.sol";
import { LegacyAllocation } from "./libraries/LegacyAllocation.sol";

abstract contract SubgraphServiceV1Storage {
/// @notice Service providers registered in the data service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,6 @@ library LegacyAllocation {
self[allocationId] = allocation;
}

/**
* @notice Get a legacy allocation
* @param self The legacy allocation list mapping
* @param allocationId The allocation id
*/
function get(mapping(address => State) storage self, address allocationId) internal view returns (State memory) {
return get(self, allocationId);
}

/**
* @notice Revert if a legacy allocation exists
* @param self The legacy allocation list mapping
Expand Down

0 comments on commit 4851775

Please sign in to comment.