[automerger skipped] Merge "[RESTRICT AUTOMERGE] Remove unnecessary test." into oreo-mr1-cts-dev am: 3b1e6518bd -s ours am: 7a70d9038a -s ours

am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/libcore/+/1545729

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I140ba20d7f7939a42583c2f3a1d2a9fad986e58c