fix(multicodec): remove unnecessary "!=" operator (#1112)

This commit is contained in:
diegomrsantos 2024-06-04 16:42:30 +02:00 committed by GitHub
parent 368c9765f7
commit 8cb7dbb425
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))