From 1565adbdb02bb4025d4be0fe7e625cd827cf64d7 Mon Sep 17 00:00:00 2001 From: Serchinastico <54cymru@gmail.com> Date: Tue, 21 May 2019 13:07:47 +0200 Subject: [PATCH] Remove unused annotations --- .../jetpack/superheroes/domain/usecase/GetSuperHeroById.kt | 2 -- .../karumi/jetpack/superheroes/domain/usecase/GetSuperHeroes.kt | 2 -- .../karumi/jetpack/superheroes/domain/usecase/SaveSuperHero.kt | 2 -- 3 files changed, 6 deletions(-) diff --git a/app/src/main/java/com/karumi/jetpack/superheroes/domain/usecase/GetSuperHeroById.kt b/app/src/main/java/com/karumi/jetpack/superheroes/domain/usecase/GetSuperHeroById.kt index b07d510..4f446b3 100644 --- a/app/src/main/java/com/karumi/jetpack/superheroes/domain/usecase/GetSuperHeroById.kt +++ b/app/src/main/java/com/karumi/jetpack/superheroes/domain/usecase/GetSuperHeroById.kt @@ -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) } \ No newline at end of file diff --git a/app/src/main/java/com/karumi/jetpack/superheroes/domain/usecase/GetSuperHeroes.kt b/app/src/main/java/com/karumi/jetpack/superheroes/domain/usecase/GetSuperHeroes.kt index e66069a..c260f03 100644 --- a/app/src/main/java/com/karumi/jetpack/superheroes/domain/usecase/GetSuperHeroes.kt +++ b/app/src/main/java/com/karumi/jetpack/superheroes/domain/usecase/GetSuperHeroes.kt @@ -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 = superHeroesRepository.getAllSuperHeroes() } \ No newline at end of file diff --git a/app/src/main/java/com/karumi/jetpack/superheroes/domain/usecase/SaveSuperHero.kt b/app/src/main/java/com/karumi/jetpack/superheroes/domain/usecase/SaveSuperHero.kt index a4468dc..b03554f 100644 --- a/app/src/main/java/com/karumi/jetpack/superheroes/domain/usecase/SaveSuperHero.kt +++ b/app/src/main/java/com/karumi/jetpack/superheroes/domain/usecase/SaveSuperHero.kt @@ -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) } \ No newline at end of file