From 4851775c54a13a17d5876f961cb75ec77c3f6517 Mon Sep 17 00:00:00 2001 From: MoonBoi9001 Date: Tue, 1 Oct 2024 12:04:39 +0100 Subject: [PATCH] fix: remove redundant get function from LegacyAllocation.sol. --- .../contracts/SubgraphServiceStorage.sol | 2 -- .../contracts/libraries/LegacyAllocation.sol | 9 --------- 2 files changed, 11 deletions(-) diff --git a/packages/subgraph-service/contracts/SubgraphServiceStorage.sol b/packages/subgraph-service/contracts/SubgraphServiceStorage.sol index bd937815c..cc2bc75b3 100644 --- a/packages/subgraph-service/contracts/SubgraphServiceStorage.sol +++ b/packages/subgraph-service/contracts/SubgraphServiceStorage.sol @@ -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 diff --git a/packages/subgraph-service/contracts/libraries/LegacyAllocation.sol b/packages/subgraph-service/contracts/libraries/LegacyAllocation.sol index cc64c3fa4..8805d93bc 100644 --- a/packages/subgraph-service/contracts/libraries/LegacyAllocation.sol +++ b/packages/subgraph-service/contracts/libraries/LegacyAllocation.sol @@ -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