Skip to content

Commit f350f50

Browse files
committed
Remove unused group tracker
1 parent 20723e1 commit f350f50

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

include/albatross/src/models/pic_gp.hpp

-6
Original file line numberDiff line numberDiff line change
@@ -639,15 +639,12 @@ class PICGaussianProcessRegression
639639
features.size());
640640
Eigen::VectorXi col_alloc{Eigen::VectorXi::Zero(features.size())};
641641
bool all_same_group = true;
642-
bool all_in_groups = true;
643642
for (Eigen::Index j = 0; j < features.size(); ++j) {
644643
groups[j] = sparse_gp_fit.measurement_groups.find(
645644
independent_group_function_(without_measurement(features[j])));
646645
if (groups[j] != sparse_gp_fit.measurement_groups.end()) {
647646
col_alloc(j) = groups[j]->second.block_size;
648647
all_same_group = all_same_group && groups[j] == groups[0];
649-
} else {
650-
all_in_groups = false;
651648
}
652649
feature_to_block[j] =
653650
std::distance(sparse_gp_fit.measurement_groups.begin(), groups[j]);
@@ -726,15 +723,12 @@ class PICGaussianProcessRegression
726723
features.size());
727724
Eigen::VectorXi col_alloc{Eigen::VectorXi::Zero(features.size())};
728725
bool all_same_group = true;
729-
bool all_in_groups = true;
730726
for (Eigen::Index j = 0; j < features.size(); ++j) {
731727
groups[j] = sparse_gp_fit.measurement_groups.find(
732728
independent_group_function_(without_measurement(features[j])));
733729
if (groups[j] != sparse_gp_fit.measurement_groups.end()) {
734730
col_alloc(j) = groups[j]->second.block_size;
735731
all_same_group = all_same_group && groups[j] == groups[0];
736-
} else {
737-
all_in_groups = false;
738732
}
739733
feature_to_block[j] =
740734
std::distance(sparse_gp_fit.measurement_groups.begin(), groups[j]);

0 commit comments

Comments
 (0)