Skip to content

Commit

Permalink
Remove unused WeakTypeTag constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Mar 24, 2021
1 parent 34f5c88 commit 33aa6a1
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -32,7 +32,7 @@

package org.typelevel.log4cats.slf4j.internal

import scala.annotation.{nowarn, tailrec}
import scala.annotation.tailrec
import scala.reflect.macros.blackbox

/**
Expand All @@ -45,13 +45,12 @@ import scala.reflect.macros.blackbox
*/
private[slf4j] class GetLoggerMacros(val c: blackbox.Context) {

final def safeCreateImpl[F: c.WeakTypeTag](f: c.Expr[F]) = getLoggerImpl[F](f, true)
final def safeCreateImpl[F](f: c.Expr[F]) = getLoggerImpl[F](f, true)

final def unsafeCreateImpl[F: c.WeakTypeTag](f: c.Expr[F]) = getLoggerImpl[F](f, false)
final def unsafeCreateImpl[F](f: c.Expr[F]) = getLoggerImpl[F](f, false)

/** Get a logger by reflecting the enclosing class name. */
@nowarn("cat=unused")
private def getLoggerImpl[F: c.WeakTypeTag](f: c.Expr[F], delayed: Boolean) = {
private def getLoggerImpl[F](f: c.Expr[F], delayed: Boolean) = {
import c.universe._

@tailrec def findEnclosingClass(sym: c.universe.Symbol): c.universe.Symbol = {
Expand Down

0 comments on commit 33aa6a1

Please sign in to comment.