Skip to content

Commit

Permalink
Merge branch 'test-cleanup' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
shorthouse committed Nov 3, 2023
2 parents 7ef4e3b + caf844c commit 0d26797
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package dev.shorthouse.coinwatch.data.mapper

import dev.shorthouse.coinwatch.data.datastore.Currency
import dev.shorthouse.coinwatch.data.source.local.model.CachedCoin
import dev.shorthouse.coinwatch.data.source.remote.model.CoinsApiModel
import dev.shorthouse.coinwatch.model.Coin
import dev.shorthouse.coinwatch.model.Percentage
Expand Down Expand Up @@ -33,16 +32,4 @@ class CoinMapper @Inject constructor() {
)
}
}

fun mapCachedCoinToModel(cachedCoin: CachedCoin): Coin {
return Coin(
id = cachedCoin.id,
name = cachedCoin.name,
symbol = cachedCoin.symbol,
imageUrl = cachedCoin.imageUrl,
currentPrice = cachedCoin.currentPrice,
priceChangePercentage24h = cachedCoin.priceChangePercentage24h,
prices24h = cachedCoin.prices24h
)
}
}

0 comments on commit 0d26797

Please sign in to comment.