From 6f6dd1877a8fd483da846c65d9d6418de7d06db3 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 4 Dec 2021 16:29:40 -0300 Subject: [PATCH] Remove dead code --- src/sourcify/useSourcify.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/sourcify/useSourcify.ts b/src/sourcify/useSourcify.ts index 85baaaa..e210ea0 100644 --- a/src/sourcify/useSourcify.ts +++ b/src/sourcify/useSourcify.ts @@ -121,16 +121,6 @@ export const useSourcify = ( return rawMetadata; }; -export const useSingleMetadata = ( - address: ChecksummedAddress | undefined, - chainId: number | undefined, - source: SourcifySource -) => { - const addresses = useMemo(() => (address ? [address] : []), [address]); - const metadatas = useMultipleMetadata(undefined, addresses, chainId, source); - return address !== undefined ? metadatas[address] : undefined; -}; - export const useDedupedAddresses = ( addresses: ChecksummedAddress[] ): ChecksummedAddress[] => {