Skip to content

Commit 395d8a8

Browse files
committed
ref: Remove unused vals.
1 parent cb566a0 commit 395d8a8

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

jvb/src/main/kotlin/org/jitsi/videobridge/cc/BandwidthProbing.kt

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import org.jitsi.nlj.rtp.bandwidthestimation.BandwidthEstimator
2020
import org.jitsi.nlj.util.Bandwidth
2121
import org.jitsi.nlj.util.BitrateTracker
2222
import org.jitsi.nlj.util.bytes
23-
import org.jitsi.rtp.extensions.unsigned.toPositiveLong
2423
import org.jitsi.utils.concurrent.PeriodicRunnable
2524
import org.jitsi.utils.logging.DiagnosticContext
2625
import org.jitsi.utils.logging.TimeSeriesLogger
@@ -30,26 +29,13 @@ import org.jitsi.videobridge.cc.allocation.BitrateControllerStatusSnapshot
3029
import org.jitsi.videobridge.cc.config.BandwidthProbingConfig.Companion.config
3130
import org.json.simple.JSONObject
3231
import java.util.function.Supplier
33-
import kotlin.random.Random
3432

3533
class BandwidthProbing(
3634
private val probingDataSender: ProbingDataSender,
3735
private val statusSnapshotSupplier: Supplier<BitrateControllerStatusSnapshot>
3836
) : PeriodicRunnable(config.paddingPeriodMs), BandwidthEstimator.Listener {
3937

40-
/**
41-
* The sequence number to use if probing with the JVB's SSRC.
42-
*/
43-
private val seqNum = Random.nextInt(0xFFFF)
44-
45-
/**
46-
* The RTP timestamp to use if probing with the JVB's SSRC.
47-
*/
48-
private val ts: Long = Random.nextInt().toPositiveLong()
49-
50-
/**
51-
* Whether or not probing is currently enabled
52-
*/
38+
/** Whether or not probing is currently enabled */
5339
var enabled = false
5440

5541
private var lastTotalNeededBps = 0L
@@ -147,8 +133,6 @@ class BandwidthProbing(
147133
}
148134

149135
fun getDebugState(): JSONObject = JSONObject().apply {
150-
put("seqNum", seqNum)
151-
put("ts", ts)
152136
put("enabled", enabled)
153137
put("latestBwe", latestBwe)
154138
put("lastTotalNeededBps", lastTotalNeededBps)

0 commit comments

Comments
 (0)