Skip to content

Commit 780912b

Browse files
committed
Remove VcrSelfie.TestLocator
1 parent 2d04e25 commit 780912b

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/Selfie.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ object Selfie {
9595
* control whether the VCR is writing or reading. If the caller lives in a package called
9696
* `selfie.*` it will keep looking up the stack trace until a caller is not inside `selfie.*`.
9797
*/
98-
@JvmStatic
99-
@ExperimentalSelfieVcr
100-
fun vcrTestLocator(sub: String = "") = VcrSelfie.TestLocator(sub, deferredDiskStorage)
101-
10298
@JvmStatic
10399
@ExperimentalSelfieVcr
104100
fun vcrSelfie(sub: String = "") = VcrSelfie(sub, recordCall(false), deferredDiskStorage)

jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/VcrSelfie.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package com.diffplug.selfie
1818
import com.diffplug.selfie.guts.CallStack
1919
import com.diffplug.selfie.guts.DiskStorage
2020
import com.diffplug.selfie.guts.atomic
21-
import com.diffplug.selfie.guts.recordCall
2221
import com.diffplug.selfie.guts.reentrantLock
2322
import com.diffplug.selfie.guts.withLock
2423

@@ -31,10 +30,6 @@ internal constructor(
3130
private val call: CallStack,
3231
private val disk: DiskStorage,
3332
) : AutoCloseable {
34-
class TestLocator internal constructor(private val sub: String, private val disk: DiskStorage) {
35-
private val call = recordCall(false)
36-
fun createVcr() = VcrSelfie(sub, call, disk)
37-
}
3833
private val state: State
3934

4035
internal sealed class State {

0 commit comments

Comments
 (0)