Skip to content

Commit

Permalink
Remove unneeded :app:Highlight model class.
Browse files Browse the repository at this point in the history
+ AppRepository#readHighlights is only invoked within the scope of
  database models in AppRepository#loadSessionsForDayIndex. Hence,
  there is no reason to convert the returned :database:Highlight to
  :app:Highlight.
  • Loading branch information
johnjohndoe committed Jun 28, 2024
1 parent 073dc28 commit 96214ab
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 48 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import nerd.tuxmobil.fahrplan.congress.dataconverters.toDateInfos
import nerd.tuxmobil.fahrplan.congress.dataconverters.toDayIndices
import nerd.tuxmobil.fahrplan.congress.dataconverters.toDayRanges
import nerd.tuxmobil.fahrplan.congress.dataconverters.toHighlightDatabaseModel
import nerd.tuxmobil.fahrplan.congress.dataconverters.toHighlightsAppModel
import nerd.tuxmobil.fahrplan.congress.dataconverters.toMetaAppModel
import nerd.tuxmobil.fahrplan.congress.dataconverters.toMetaDatabaseModel
import nerd.tuxmobil.fahrplan.congress.dataconverters.toMetaNetworkModel
Expand Down Expand Up @@ -703,7 +702,7 @@ object AppRepository {
}

private fun readHighlights() =
highlightsDatabaseRepository.query().toHighlightsAppModel()
highlightsDatabaseRepository.query()

@WorkerThread
fun updateHighlight(session: SessionAppModel) {
Expand Down

This file was deleted.

0 comments on commit 96214ab

Please sign in to comment.