Skip to content

Commit

Permalink
fix(multicodec): remove unnecessary "!=" operator (#1112)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrsantos authored Jun 4, 2024
1 parent 368c976 commit 8cb7dbb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libp2p/multicodec.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8cb7dbb

Please sign in to comment.