Cleanup code that assumes the primary boot image not having profiles.
Bug: 203492478
Test: Presubmits
Test: 1. Turn on `-verbose:compiler`.
2. Pass multiple boot images with profiles via `--boot-image` to
dex2oat
3. See the following log:
Pruning profile specifications of the boot image location. Before: /apex/com.android.art/javalib/boot.art!/apex/com.android.art/etc/boot-image.prof:/data/misc/apexdata/com.android.art/dalvik-cache/boot-framework.art!/system/etc/boot-image.prof, After: /apex/com.android.art/javalib/boot.art:/data/misc/apexdata/com.android.art/dalvik-cache/boot-framework.art
Change-Id: I7d4bf9db40f200d31620cccfe138657fcca05abc
1 file changed