Skip to content

Commit 4240fbb

Browse files
committed
remove unused code
1 parent 62ace44 commit 4240fbb

File tree

1 file changed

+0
-11
lines changed
  • android-snaptesting/src/main/java/com/telefonica/androidsnaptesting/screenshots

1 file changed

+0
-11
lines changed

android-snaptesting/src/main/java/com/telefonica/androidsnaptesting/screenshots/ScreenshotsRule.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import android.graphics.BitmapFactory
66
import android.os.Build
77
import android.os.Looper
88
import android.view.View
9-
import android.view.View.INVISIBLE
109
import android.widget.EditText
1110
import android.widget.HorizontalScrollView
1211
import android.widget.ScrollView
@@ -42,9 +41,6 @@ public class ScreenshotsRule(
4241

4342
private val directories = Directories()
4443

45-
private val ignoredViews: List<Int>
46-
get() = emptyList()
47-
4844
override fun apply(base: Statement, description: Description): Statement {
4945
className = description.className
5046
testName = description.methodName
@@ -160,7 +156,6 @@ public class ScreenshotsRule(
160156
private fun disableFlakyComponentsAndWaitForIdle(view: View? = null) {
161157
if (view != null) {
162158
disableAnimatedComponents(view)
163-
hideIgnoredViews(view)
164159
}
165160
if (notInAppMainThread()) {
166161
waitForAnimationsToFinish()
@@ -196,12 +191,6 @@ public class ScreenshotsRule(
196191
it.overScrollMode = View.OVER_SCROLL_NEVER
197192
}
198193

199-
private fun hideIgnoredViews(view: View) = runOnUi {
200-
view.filterChildrenViews { children -> children.id in ignoredViews }.forEach { viewToIgnore ->
201-
viewToIgnore.visibility = INVISIBLE
202-
}
203-
}
204-
205194
public fun waitForAnimationsToFinish() {
206195
getInstrumentation().waitForIdleSync()
207196
Espresso.onIdle()

0 commit comments

Comments
 (0)