Skip to content

Commit 0f40b93

Browse files
committed
in kernelJVM
1 parent 7dff902 commit 0f40b93

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

kernel/src/main/scala-2.12/cats/kernel/compat/HashCompat.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ package compat
4545

4646
private[kernel] class HashCompat {
4747
// Adapted from scala.util.hashing.MurmurHash#productHash.
48-
private[kernel] def product1HashWithPrefix(_1Hash: Int, prefix: String): Int = {
48+
private[kernel] def product1HashWithPrefix(_1Hash: Int, @unused prefix: String): Int = {
4949
import scala.util.hashing.MurmurHash3._
5050
var h = productSeed
5151
h = mix(h, _1Hash)
5252
finalizeHash(h, 1)
5353
}
5454

5555
// Adapted from scala.util.hashing.MurmurHash#productHash.
56-
private[cats] def product2HashWithPrefix(_1Hash: Int, _2Hash: Int, prefix: String): Int = {
56+
private[cats] def product2HashWithPrefix(_1Hash: Int, _2Hash: Int, @unused prefix: String): Int = {
5757
import scala.util.hashing.MurmurHash3._
5858
var h = productSeed
5959
h = mix(h, _1Hash)

kernel/src/main/scala/cats/kernel/instances/MapInstances.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@
4242
package cats.kernel
4343
package instances
4444

45+
import cats.kernel.compat.scalaVersionSpecific._
46+
import cats.kernel.compat.unused
47+
4548
import scala.collection.mutable
46-
import compat.scalaVersionSpecific._
4749

4850
@suppressUnusedImportWarningForScalaVersionSpecific
4951
trait MapInstances extends MapInstances1 {
50-
implicit def catsKernelStdHashForMap[K: Hash, V: Hash]: Hash[Map[K, V]] =
52+
implicit def catsKernelStdHashForMap[K, V](implicit @unused K: Hash[K], V: Hash[V]): Hash[Map[K, V]] =
5153
new MapHash[K, V]
5254

5355
implicit def catsKernelStdCommutativeMonoidForMap[K, V: CommutativeSemigroup]: CommutativeMonoid[Map[K, V]] =

0 commit comments

Comments
 (0)