From 4cb876927108e81a4ea3633eac4623e7392bc802 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 20 May 2022 11:44:58 +1000 Subject: [PATCH] Remove unused constant --- src/lib/enr/keypair/constants.ts | 2 -- src/lib/enr/keypair/index.ts | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 src/lib/enr/keypair/constants.ts diff --git a/src/lib/enr/keypair/constants.ts b/src/lib/enr/keypair/constants.ts deleted file mode 100644 index 6dae7483f2..0000000000 --- a/src/lib/enr/keypair/constants.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const ERR_TYPE_NOT_IMPLEMENTED = "Keypair type not implemented"; -export const ERR_INVALID_KEYPAIR_TYPE = "Invalid keypair type"; diff --git a/src/lib/enr/keypair/index.ts b/src/lib/enr/keypair/index.ts index 58e6af0f9c..8dc60ad9a6 100644 --- a/src/lib/enr/keypair/index.ts +++ b/src/lib/enr/keypair/index.ts @@ -2,12 +2,12 @@ import { keys } from "libp2p-crypto"; import { identity } from "multiformats/hashes/identity"; import PeerId from "peer-id"; -const { keysPBM, supportedKeys } = keys; - -import { ERR_TYPE_NOT_IMPLEMENTED } from "./constants"; import { Secp256k1Keypair } from "./secp256k1"; import { IKeypair, KeypairType } from "./types"; +const { keysPBM, supportedKeys } = keys; + +export const ERR_TYPE_NOT_IMPLEMENTED = "Keypair type not implemented"; export * from "./types"; export * from "./secp256k1";