Skip to content

Commit

Permalink
Remove unused code (#2904)
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii authored Oct 2, 2023
1 parent f9c68d8 commit f6228d3
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ class CassandraZioContext[+N <: NamingStrategy](val naming: N)
with Context[CqlIdiom, N]
with Probing {

private val logger = ContextLogger(classOf[CassandraZioContext[_]])

override type Error = Throwable
override type Environment = CassandraZioSession

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ object Quill {
ZLayer.fromFunction((session: CassandraZioSession) => new Cassandra[N](naming, session))
}

case class Cassandra[+N <: NamingStrategy](val naming: N, session: CassandraZioSession)
class Cassandra[+N <: NamingStrategy](val naming: N, session: CassandraZioSession)
extends CassandraRowContext[N]
with ZioContext[CqlIdiom, N]
with Context[CqlIdiom, N]
with Probing {

private val logger = ContextLogger(classOf[Quill.Cassandra[_]])

override type Error = Throwable
override type Environment = Any

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
package io.getquill.codegen.jdbc.model

import java.sql.Types._

import io.getquill.codegen.model._
import io.getquill.util.ContextLogger

import java.sql.Types._
import scala.reflect.{ClassTag, classTag}

class DefaultJdbcTyper(
strategy: UnrecognizedTypeStrategy,
numericPreference: NumericPreference
) extends (JdbcTypeInfo => Option[ClassTag[_]]) {

private val logger = ContextLogger(classOf[DefaultJdbcTyper])
private[getquill] val MaxIntDigits = 9
private[getquill] val MaxLongDigits = 18

Expand Down
2 changes: 1 addition & 1 deletion quill-core/src/main/scala/io/getquill/log/ContextLog.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import io.getquill.util.ContextLogger
object ContextLog {
private val logger = ContextLogger(this.getClass)

def apply(str: String) =
def apply(str: String): Unit =
logger.underlying.error(str)
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ abstract class ZioJAsyncContext[D <: SqlIdiom, +N <: NamingStrategy, C <: Concre
with Encoders
with ZIOMonad {

protected val dateTimeZone = ZoneId.systemDefault()
protected val dateTimeZone: ZoneId = ZoneId.systemDefault()

private val logger = ContextLogger(classOf[ZioJAsyncContext[_, _, _]])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ abstract class JAsyncContext[D <: SqlIdiom, +N <: NamingStrategy, C <: ConcreteC
override type NullChecker = JasyncNullChecker
type Runner = Unit

protected val dateTimeZone = ZoneId.systemDefault()
protected val dateTimeZone: ZoneId = ZoneId.systemDefault()

class JasyncNullChecker extends BaseNullChecker {
override def apply(index: Int, row: RowData): Boolean =
Expand Down

0 comments on commit f6228d3

Please sign in to comment.