Skip to content

Commit

Permalink
Remove unused annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Serchinastico committed May 21, 2019
1 parent 9ed5642 commit 1565adb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package com.karumi.jetpack.superheroes.domain.usecase

import androidx.annotation.WorkerThread
import com.karumi.jetpack.superheroes.data.repository.SuperHeroRepository
import com.karumi.jetpack.superheroes.domain.model.SuperHero

class GetSuperHeroById(private val superHeroesRepository: SuperHeroRepository) {
@WorkerThread
operator fun invoke(id: String): SuperHero? = superHeroesRepository.get(id)
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package com.karumi.jetpack.superheroes.domain.usecase

import androidx.annotation.WorkerThread
import com.karumi.jetpack.superheroes.data.repository.SuperHeroRepository
import com.karumi.jetpack.superheroes.domain.model.SuperHero

class GetSuperHeroes(private val superHeroesRepository: SuperHeroRepository) {
@WorkerThread
operator fun invoke(): List<SuperHero> = superHeroesRepository.getAllSuperHeroes()
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.karumi.jetpack.superheroes.domain.usecase

import androidx.annotation.WorkerThread
import com.karumi.jetpack.superheroes.data.repository.SuperHeroRepository
import com.karumi.jetpack.superheroes.domain.model.SuperHero

class SaveSuperHero(private val superHeroesRepository: SuperHeroRepository) {
@WorkerThread
operator fun invoke(superHero: SuperHero): SuperHero? =
superHeroesRepository.save(superHero)
}

0 comments on commit 1565adb

Please sign in to comment.