Commenting unused parameters for better readibility

Change-Id: Idc285fa68ba787636a69a3ea3350e0282b9f8569
This commit is contained in:
Alexander Ivanov
2023-01-09 11:23:12 +00:00
committed by Sameer Agarwal
parent 772d927e19
commit f1113c08ab
28 changed files with 53 additions and 45 deletions
-5
View File
@@ -468,17 +468,12 @@ bool CovarianceImpl::ComputeCovarianceSparsity(
// Iterate over the covariance blocks contained in this row block
// and count the number of columns in this row block.
int num_col_blocks = 0;
// TODO(sameeragarwal): num_columns is being computed but not
// being used.
int num_columns = 0;
for (int j = i; j < covariance_blocks.size(); ++j, ++num_col_blocks) {
const std::pair<const double*, const double*>& block_pair =
covariance_blocks[j];
if (block_pair.first != row_block) {
break;
}
num_columns += problem->ParameterBlockTangentSize(block_pair.second);
}
// Fill out all the compressed rows for this parameter block.