mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Commenting unused parameters for better readibility
Change-Id: Idc285fa68ba787636a69a3ea3350e0282b9f8569
This commit is contained in:
committed by
Sameer Agarwal
parent
772d927e19
commit
f1113c08ab
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user