From 8cb7dbb425df1124b17c6b3142a19a380114a693 Mon Sep 17 00:00:00 2001 From: diegomrsantos Date: Tue, 4 Jun 2024 16:42:30 +0200 Subject: [PATCH] fix(multicodec): remove unnecessary "!=" operator (#1112) --- libp2p/multicodec.nim | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libp2p/multicodec.nim b/libp2p/multicodec.nim index a873e5fd5..de28689fe 100644 --- a/libp2p/multicodec.nim +++ b/libp2p/multicodec.nim @@ -289,10 +289,6 @@ proc `==`*(a, b: MultiCodec): bool = ## Returns ``true`` if MultiCodecs ``a`` and ``b`` are equal. int(a) == int(b) -proc `!=`*(a, b: MultiCodec): bool = - ## Returns ``true`` if MultiCodecs ``a`` and ``b`` are not equal. - int(a) != int(b) - proc hash*(m: MultiCodec): Hash {.inline.} = ## Hash procedure for tables. hash(int(m))