Remove dead code
This commit is contained in:
parent
3a6f050061
commit
6f6dd1877a
|
@ -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[] => {
|
||||||
|
|
Loading…
Reference in New Issue