Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cwa App Android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Foertsch
Cwa App Android
Commits
2492a68f
Commit
2492a68f
authored
4 years ago
by
Matthias Urhahn
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused function that caused build errors.
parent
04cd061b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/diagnosiskeys/download/DownloadDiagnosisKeysTask.kt
+0
-22
0 additions, 22 deletions
...rnapp/diagnosiskeys/download/DownloadDiagnosisKeysTask.kt
with
0 additions
and
22 deletions
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/diagnosiskeys/download/DownloadDiagnosisKeysTask.kt
+
0
−
22
View file @
2492a68f
...
@@ -15,13 +15,10 @@ import de.rki.coronawarnapp.task.TaskFactory
...
@@ -15,13 +15,10 @@ import de.rki.coronawarnapp.task.TaskFactory
import
de.rki.coronawarnapp.task.TaskFactory.Config.CollisionBehavior
import
de.rki.coronawarnapp.task.TaskFactory.Config.CollisionBehavior
import
de.rki.coronawarnapp.util.TimeStamper
import
de.rki.coronawarnapp.util.TimeStamper
import
de.rki.coronawarnapp.util.ui.toLazyString
import
de.rki.coronawarnapp.util.ui.toLazyString
import
de.rki.coronawarnapp.worker.BackgroundWorkHelper
import
kotlinx.coroutines.channels.ConflatedBroadcastChannel
import
kotlinx.coroutines.channels.ConflatedBroadcastChannel
import
kotlinx.coroutines.flow.Flow
import
kotlinx.coroutines.flow.Flow
import
kotlinx.coroutines.flow.asFlow
import
kotlinx.coroutines.flow.asFlow
import
kotlinx.coroutines.flow.first
import
kotlinx.coroutines.flow.first
import
org.joda.time.DateTime
import
org.joda.time.DateTimeZone
import
org.joda.time.Duration
import
org.joda.time.Duration
import
org.joda.time.Instant
import
org.joda.time.Instant
import
timber.log.Timber
import
timber.log.Timber
...
@@ -168,25 +165,6 @@ class DownloadDiagnosisKeysTask @Inject constructor(
...
@@ -168,25 +165,6 @@ class DownloadDiagnosisKeysTask @Inject constructor(
LocalData
.
lastTimeDiagnosisKeysFromServerFetch
(
currentDate
)
LocalData
.
lastTimeDiagnosisKeysFromServerFetch
(
currentDate
)
}
}
private
fun
noKeysFetchedToday
():
Boolean
{
val
currentDate
=
DateTime
(
timeStamper
.
nowUTC
,
DateTimeZone
.
UTC
)
val
lastFetch
=
DateTime
(
LocalData
.
lastTimeDiagnosisKeysFromServerFetch
(),
DateTimeZone
.
UTC
)
return
(
LocalData
.
lastTimeDiagnosisKeysFromServerFetch
()
==
null
||
currentDate
.
withTimeAtStartOfDay
()
!=
lastFetch
.
withTimeAtStartOfDay
()).
also
{
if
(
it
)
{
Timber
.
tag
(
TAG
)
.
d
(
"No keys fetched today yet (last=%s, now=%s)"
,
lastFetch
,
currentDate
)
BackgroundWorkHelper
.
sendDebugNotification
(
"Start Task"
,
"No keys fetched today yet \n${DateTime.now()}\nUTC: $currentDate"
)
}
}
}
private
fun
rollback
(
rollbackItems
:
MutableList
<
RollbackItem
>)
{
private
fun
rollback
(
rollbackItems
:
MutableList
<
RollbackItem
>)
{
try
{
try
{
Timber
.
tag
(
TAG
).
d
(
"Initiate Rollback"
)
Timber
.
tag
(
TAG
).
d
(
"Initiate Rollback"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment