[automerger skipped] Merge "[RESTRICT AUTOMERGE] Remove unnecessary test." into pie-cts-dev am: 5ab4eef630 -s ours

am skip reason: subject contains skip directive

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iff42c154f59d790936254036ded7df2f0b475b26