Skip to content

Commit 1fe8fc8

Browse files
committed
refactor: remove unused getAppearance function from OutputText
1 parent 620aeae commit 1fe8fc8

File tree

1 file changed

+0
-15
lines changed
  • app/src/main/java/org/kabiri/android/usbterminal/model

1 file changed

+0
-15
lines changed
Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package org.kabiri.android.usbterminal.model
22

3-
import android.content.Context
4-
import android.text.style.TextAppearanceSpan
5-
63
/**
74
* Created by Ali Kabiri on 21.04.20.
85
*/
@@ -15,16 +12,4 @@ data class OutputText(
1512
TYPE_INFO,
1613
TYPE_ERROR,
1714
}
18-
19-
fun getAppearance(context: Context): TextAppearanceSpan =
20-
when (this.type) {
21-
OutputType.TYPE_NORMAL ->
22-
TextAppearanceSpan(context, android.R.style.TextAppearance_Material)
23-
24-
OutputType.TYPE_INFO ->
25-
TextAppearanceSpan(context, android.R.style.TextAppearance_Material_Small)
26-
27-
OutputType.TYPE_ERROR ->
28-
TextAppearanceSpan(context, android.R.style.TextAppearance_Material_Large)
29-
}
3015
}

0 commit comments

Comments
 (0)