Skip to content

Commit f0ddf77

Browse files
authored
Remove unreachable break statements in database test (colmap#4990)
GTEST_FAIL() is a fatal failure, so the break statements after it in the default branches of the Merge test switches are unreachable. Remove both of them.
1 parent 97b5d74 commit f0ddf77

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎src/colmap/scene/database_test.cc‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,6 @@ TEST_P(ParameterizedDatabaseTests, Merge) {
10451045
break;
10461046
default:
10471047
GTEST_FAIL() << "Unexpected sensor type: " << data_id.sensor_id.type;
1048-
break;
10491048
}
10501049
}
10511050
}
@@ -1059,7 +1058,6 @@ TEST_P(ParameterizedDatabaseTests, Merge) {
10591058
default:
10601059
GTEST_FAIL() << "Unexpected sensor type: "
10611060
<< pose_prior.corr_data_id.sensor_id.type;
1062-
break;
10631061
}
10641062
}
10651063

0 commit comments

Comments
 (0)