Skip to content

Commit b44bfa7

Browse files
authored
Drop deprecated methods (#740)
1 parent a9538e2 commit b44bfa7

File tree

6 files changed

+0
-63
lines changed

6 files changed

+0
-63
lines changed

core/src/main/scala/com/evolutiongaming/kafka/flow/key/KeyDatabase.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ trait KeyDatabase[F[_], K] {
2020

2121
def all(applicationId: String, groupId: String, topicPartition: TopicPartition): Stream[F, K]
2222

23-
@deprecated("Use `toKeysOf` instead", "5.0.6")
24-
def keysOf(implicit F: Monad[F], logOf: LogOf[F]): F[KeysOf[F, K]] =
25-
logOf(KeyDatabase.getClass) map { implicit log => KeysOf(this) }
26-
2723
def toKeysOf(implicit F: Monad[F], logOf: LogOf[F], logPrefix: LogPrefix[K]): F[KeysOf[F, K]] =
2824
logOf(KeyDatabase.getClass) map { implicit log => KeysOf.of(this) }
2925
}

core/src/main/scala/com/evolutiongaming/kafka/flow/key/Keys.scala

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,6 @@ trait KeyWriter[F[_]] {
2323
}
2424
object Keys {
2525

26-
/** Creates a buffer for a given writer */
27-
@deprecated("Use `of` instead", "5.0.6")
28-
private[key] def apply[F[_]: Monad: Log, K](
29-
key: K,
30-
database: KeyDatabase[F, K]
31-
): Keys[F] = new Keys[F] {
32-
33-
def flush: F[Unit] = database.persist(key)
34-
35-
def delete(persist: Boolean): F[Unit] =
36-
if (persist) {
37-
database.delete(key) *> Log[F].info("deleted key")
38-
} else {
39-
().pure[F]
40-
}
41-
42-
}
43-
4426
private[key] def of[F[_]: Monad: Log, K: LogPrefix](
4527
key: K,
4628
database: KeyDatabase[F, K]

core/src/main/scala/com/evolutiongaming/kafka/flow/key/KeysOf.scala

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,9 @@ trait KeysOf[F[_], K] {
1717
}
1818
object KeysOf {
1919

20-
@deprecated("Use another `memory1` instead", "5.0.6")
21-
def memory[F[_]: Sync: Log, K]: F[KeysOf[F, K]] =
22-
KeyDatabase.memory[F, K].map(database => KeysOf.apply(database))
23-
2420
def memory1[F[_]: Sync: Log, K: LogPrefix]: F[KeysOf[F, K]] =
2521
KeyDatabase.memory[F, K].map(database => KeysOf.of(database))
2622

27-
/** Creates `KeysOf` with a passed logger */
28-
@deprecated("Use `of` instead", "5.0.6")
29-
def apply[F[_]: Monad: Log, K](
30-
database: KeyDatabase[F, K]
31-
): KeysOf[F, K] = new KeysOf[F, K] {
32-
def apply(key: K) = Keys(key, database)
33-
def all(applicationId: String, groupId: String, topicPartition: TopicPartition) =
34-
database.all(applicationId, groupId, topicPartition)
35-
}
36-
3723
/** Creates `KeysOf` with a passed logger */
3824
def of[F[_]: Monad: Log, K: LogPrefix](
3925
database: KeyDatabase[F, K]

persistence-cassandra/src/main/scala/com/evolutiongaming/kafka/flow/journal/JournalSchema.scala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ trait JournalSchema[F[_]] {
1212
}
1313

1414
object JournalSchema {
15-
@deprecated(
16-
"Use the version with an explicit table name. This exists to preserve binary compatibility until the next major release",
17-
since = "6.1.3"
18-
)
19-
def of[F[_]: Monad](
20-
session: CassandraSession[F],
21-
synchronize: CassandraSync[F],
22-
): JournalSchema[F] = of(session, synchronize, CassandraJournals.DefaultTableName)
23-
2415
def of[F[_]: Monad](
2516
session: CassandraSession[F],
2617
synchronize: CassandraSync[F],

persistence-cassandra/src/main/scala/com/evolutiongaming/kafka/flow/key/KeySchema.scala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,4 @@ object KeySchema {
4949
}
5050
}
5151

52-
@deprecated(
53-
"Use the version with an explicit table name. This exists to preserve binary compatibility until the next major release",
54-
since = "6.1.3"
55-
)
56-
def of[F[_]: Monad](
57-
session: CassandraSession[F],
58-
synchronize: CassandraSync[F],
59-
): KeySchema[F] = of(session, synchronize, CassandraKeys.DefaultTableName)
60-
6152
}

persistence-cassandra/src/main/scala/com/evolutiongaming/kafka/flow/snapshot/SnapshotSchema.scala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@ trait SnapshotSchema[F[_]] {
1313

1414
object SnapshotSchema {
1515

16-
@deprecated(
17-
"Use the version with an explicit table name. This exists to preserve binary compatibility until the next major release",
18-
since = "6.1.3"
19-
)
20-
def of[F[_]: Monad](
21-
session: CassandraSession[F],
22-
synchronize: CassandraSync[F],
23-
): SnapshotSchema[F] = of(session, synchronize, CassandraSnapshots.DefaultTableName)
24-
2516
def of[F[_]: Monad](
2617
session: CassandraSession[F],
2718
synchronize: CassandraSync[F],

0 commit comments

Comments
 (0)