Skip to content

Commit

Permalink
[api]: Fix empty block of code
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagohm committed May 20, 2024
1 parent 53507e6 commit 6447d49
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ data class ASCOMMount(
service.utcDate(device.number, dateTime.toInstant()).doRequest()
}

override fun snoop(devices: Iterable<Device?>) {}
override fun snoop(devices: Iterable<Device?>) = Unit

override fun handleMessage(message: INDIProtocol) {}
override fun handleMessage(message: INDIProtocol) = Unit

override fun onConnected() {
processCapabilities()
Expand All @@ -237,7 +237,7 @@ data class ASCOMMount(
equatorialSystem = service.equatorialSystem(device.number).doRequest()?.value ?: equatorialSystem
}

override fun onDisconnected() {}
override fun onDisconnected() = Unit

override fun reset() {
super.reset()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ data class ASCOMRotator(
processPosition()
}

override fun onDisconnected() {}
override fun onDisconnected() = Unit

override fun refresh(elapsedTimeInSeconds: Long) {
super.refresh(elapsedTimeInSeconds)
Expand All @@ -46,7 +46,7 @@ data class ASCOMRotator(
}
}

override fun snoop(devices: Iterable<Device?>) {}
override fun snoop(devices: Iterable<Device?>) = Unit

override fun moveRotator(angle: Double) {
service.moveTo(device.number, angle).doRequest()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ data class ASCOMFilterWheel(
processNames()
}

override fun onDisconnected() {}
override fun onDisconnected() = Unit

override fun moveTo(position: Int) {
if (position in 1..count && position != this.position) {
Expand All @@ -55,9 +55,9 @@ data class ASCOMFilterWheel(
sender.fireOnEventReceived(FilterWheelNamesChanged(this))
}

override fun snoop(devices: Iterable<Device?>) {}
override fun snoop(devices: Iterable<Device?>) = Unit

override fun handleMessage(message: INDIProtocol) {}
override fun handleMessage(message: INDIProtocol) = Unit

private fun processPosition() {
service.position(device.number).doRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ class IdentityGuideAlgorithm(override val axis: GuideAxis) : GuideAlgorithm {

override fun compute(input: Double) = input

override fun reset() {}
override fun reset() = Unit
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class RandomDither(private val random: Random = Random.Default) : Dither {
return doubleArrayOf(ra, dec)
}

override fun reset() {}
override fun reset() = Unit

companion object {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ abstract class SkyCatalog<T : SkyObject>(estimatedSize: Int = 0) : Collection<T>
return res
}

protected fun notifyLoadFinished() {}
protected fun notifyLoadFinished() = Unit

override val size
get() = data.size
Expand Down

0 comments on commit 6447d49

Please sign in to comment.