Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
mimoguz committed Apr 6, 2021
1 parent 07fc289 commit 4ac80f5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/src/ogz/tripeaks/Util.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ object Util {
fun getCellY(row: Int): Float =
Const.CONTENT_HEIGHT - (row + 2) * Const.CELL_HEIGHT - Const.VERTICAL_PADDING

fun readDarkThemePreference() = Gdx.app.getPreferences(Const.PREFERENCES_NAME).getBoolean(Const.PREFERENCES_DARK_THEME, false)

fun setPlateSprite(assets: AssetManager, sprite: Sprite, useDarkTheme: Boolean): Sprite {
val key = if (useDarkTheme) Const.SPRITE_PLATE_DARK else Const.SPRITE_PLATE_LIGHT
setRegion(assets, sprite, key)
Expand Down

0 comments on commit 4ac80f5

Please sign in to comment.