Skip to content

Commit 49825fd

Browse files
committed
Delete dead code
1 parent b0093bc commit 49825fd

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

apps/hyperdrive-trading/src/ui/hyperdrive/longs/hooks/useTotalClosedLongsValue.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { HyperdriveConfig } from "@delvtech/hyperdrive-appconfig";
22
import { ClosedLong } from "@delvtech/hyperdrive-js";
33
import { useQuery } from "@tanstack/react-query";
44
import { makeQueryKey } from "src/base/makeQueryKey";
5-
import { useReadHyperdrive } from "src/ui/hyperdrive/hooks/useReadHyperdrive";
65
import { useOpenOrClosedSearchParam } from "src/ui/markets/hooks/useOpenOrClosedSearchParam";
76
import { Address } from "viem";
87

@@ -17,14 +16,9 @@ export function useTotalClosedLongsValue({
1716
closedLongs: ClosedLong[] | undefined;
1817
enabled: boolean;
1918
}): { totalClosedLongsValue: bigint | undefined; isLoading: boolean } {
20-
const readHyperdrive = useReadHyperdrive({
21-
chainId: hyperdrive.chainId,
22-
address: hyperdrive.address,
23-
});
2419
const activeOpenOrClosedTab = useOpenOrClosedSearchParam();
2520

26-
const queryEnabled =
27-
!!account && !!closedLongs && !!readHyperdrive && enabled;
21+
const queryEnabled = !!account && !!closedLongs && enabled;
2822

2923
const { data: totalClosedLongsValue, isLoading } = useQuery({
3024
queryKey: makeQueryKey("totalClosedLongsValue", {

packages/hyperdrive-js/src/token/eth/ReadWriteEth.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,3 @@ export class ReadWriteEth extends ReadEth implements ReadWriteToken {
2323
);
2424
}
2525
}
26-
27-
export interface MethodNotImplementedErrorOptions {
28-
/**
29-
* The name of the object that the method was not implemented in.
30-
*/
31-
objectName: string;
32-
/**
33-
* The name of the method that was not implemented.
34-
*/
35-
methodName: string;
36-
}

0 commit comments

Comments
 (0)