remove unused code

This commit is contained in:
Milos Kozak 2022-05-04 21:18:28 +02:00
parent 57d42431cc
commit 5a88283344
2 changed files with 0 additions and 8 deletions

View file

@ -72,11 +72,4 @@ class WearUtil @Inject constructor() {
// we simply ignore if sleep was interrupted
}
}
/**
* Taken out to helper method to allow testing
*/
fun bundleToDataMap(bundle: Bundle?): DataMap {
return DataMap.fromBundle(bundle)
}
}

View file

@ -25,7 +25,6 @@ class WearUtilMocker(private val wearUtil: WearUtil) {
resetClock()
Mockito.doAnswer { invocation: InvocationOnMock? -> REF_NOW + clockMsDiff }.`when`(wearUtil).timestamp()
Mockito.doReturn(null).`when`(wearUtil).getWakeLock(ArgumentMatchers.anyString(), ArgumentMatchers.anyInt())
Mockito.doAnswer(bundleToDataMapMock).`when`(wearUtil).bundleToDataMap(ArgumentMatchers.any())
}
fun resetClock() {