diff --git a/vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt b/vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt
index 35e26bb1df..ef806b55b4 100644
--- a/vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt
+++ b/vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt
@@ -164,44 +164,6 @@ object ThemeUtils {
return null
}
- /**
- * Get the resource Id applied to the current theme
- *
- * @param c the context
- * @param resourceId the resource id in the light theme
- * @return the resource Id for the current theme
- */
- // TODO Now that we are API 21, this is not necessary anymore
- fun getResourceId(c: Context, resourceId: Int): Int {
- val theme = getApplicationTheme(c)
-
- return when (theme) {
- THEME_LIGHT_VALUE -> resourceId
- THEME_DARK_VALUE -> {
- return when (resourceId) {
- R.drawable.bg_search_edit_text_light -> R.drawable.bg_search_edit_text_dark
- else -> {
- Timber.w("Warning, missing case for wanted drawable in dark theme")
- resourceId
- }
- }
- }
- THEME_BLACK_VALUE -> {
- return when (resourceId) {
- R.drawable.bg_search_edit_text_light -> R.drawable.bg_search_edit_text_black
- else -> {
- Timber.w("Warning, missing case for wanted drawable in black theme")
- resourceId
- }
- }
- }
- else -> {
- Timber.w("Warning, missing theme: $theme")
- resourceId
- }
- }
- }
-
/**
* Update the menu icons colors
*
diff --git a/vector/src/main/res/drawable/bg_search_edit_text_black.xml b/vector/src/main/res/drawable/bg_search_edit_text_black.xml
deleted file mode 100644
index 741e3c031c..0000000000
--- a/vector/src/main/res/drawable/bg_search_edit_text_black.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/vector/src/main/res/drawable/bg_search_edit_text_dark.xml b/vector/src/main/res/drawable/bg_search_edit_text_dark.xml
deleted file mode 100644
index d65c331ed2..0000000000
--- a/vector/src/main/res/drawable/bg_search_edit_text_dark.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/vector/src/main/res/drawable/bg_search_edit_text_light.xml b/vector/src/main/res/drawable/bg_search_edit_text_light.xml
deleted file mode 100644
index ba0da29660..0000000000
--- a/vector/src/main/res/drawable/bg_search_edit_text_light.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file