Remove unnecessary explicit check for the partition index being physical_devices.end()

This commit is contained in:
Matthew Pohlmann 2022-07-07 23:01:08 -05:00 committed by Charles Giessen
parent 97734970f0
commit 80396093b4

View File

@ -1235,7 +1235,7 @@ detail::Result<std::vector<PhysicalDevice>> PhysicalDeviceSelector::select_impl(
});
// Remove the partially suitable elements if they aren't desired
if (selection == DeviceSelectionMode::only_fully_suitable && partition_index != physical_devices.end()) {
if (selection == DeviceSelectionMode::only_fully_suitable) {
physical_devices.erase(partition_index, physical_devices.end());
}