Skip to content

Commit dff36e3

Browse files
committed
remove dead methods
1 parent cbcddb1 commit dff36e3

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

lib/src/main/kotlin/org/veupathdb/lib/compute/platform/intern/minio/AbstractMinIOHack.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
package org.veupathdb.lib.compute.platform.intern.minio
22

33
import org.slf4j.LoggerFactory
4-
import org.veupathdb.lib.compute.platform.intern.minio.MinIOHax.sleepCountDuration
54

65
@Suppress("NOTHING_TO_INLINE")
76
internal sealed class AbstractMinIOHack {
8-
companion object {
9-
private const val MaxDeleteAttempts = 5
10-
}
11-
127
protected val log = LoggerFactory.getLogger(javaClass)!!
138

149
protected inline fun <T> withRetries(noinline msg: () -> String, noinline fn: () -> T): T =
1510
context(log) { MinIOHax.withRetries(msg, fn) }
1611

17-
protected inline fun <T> withRetries(count: Int, noinline msg: () -> String, noinline fn: () -> T): T =
18-
context(log) { MinIOHax.withRetries(count, msg, fn) }
19-
20-
protected inline fun sleep() =
21-
context(log) { MinIOHax.sleep() }
22-
2312
protected inline fun delete(
2413
path: String,
2514
noinline deleteFn: () -> Unit,

0 commit comments

Comments
 (0)