Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyicker committed Nov 7, 2023
1 parent 57c939f commit 4356f9e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.tidal.networktime.internal

import kotlin.random.Random
import kotlin.time.Duration

internal class NtpExchanger(
private val referenceClock: ReferenceClock,
private val ntpPacketSerializer: NtpPacketSerializer,
private val ntpPacketDeserializer: NtpPacketDeserializer,
private val random: Random,
) {
operator fun invoke(
address: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import kotlin.time.Duration.Companion.days

internal data class NtpPacket(
val leapIndicator: Int = 0,
val versionNumber: Int = 0,
val mode: Int = 0,
val versionNumber: Int,
val mode: Int,
val stratum: Byte = 0,
val poll: Byte = 0,
val precision: Byte = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ internal class SyncPeriodic(
referenceClock,
NtpPacketSerializer(random),
NtpPacketDeserializer(),
random,
),
) {
suspend operator fun invoke() {
Expand Down

0 comments on commit 4356f9e

Please sign in to comment.