Remove dead code

This commit is contained in:
Willian Mitsuda 2021-12-04 16:29:40 -03:00
parent 3a6f050061
commit 6f6dd1877a
1 changed files with 0 additions and 10 deletions

View File

@ -121,16 +121,6 @@ export const useSourcify = (
return rawMetadata; 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 = ( export const useDedupedAddresses = (
addresses: ChecksummedAddress[] addresses: ChecksummedAddress[]
): ChecksummedAddress[] => { ): ChecksummedAddress[] => {