Skip to content

Commit

Permalink
MVE: Remove unused variable in load_colmap_points_3D_txt()
Browse files Browse the repository at this point in the history
Found by Apple clang version 14.0.0 (clang-1400.0.29.202) on macOS 12:

  bundle_io.cc:743:9: warning: variable 'num_points_3d' set but not used [-Wunused-but-set-variable]
  • Loading branch information
andre-schulz committed Jul 21, 2024
1 parent 443d424 commit 417911f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libs/mve/bundle_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,6 @@ load_colmap_points_3D_txt(std::string const& points3D_filename,
Bundle::Features& features = bundle->get_features();

std::size_t num_views = bundle->get_cameras().size();
int num_points_3d = 0;
std::string point_3d_line;
while (std::getline(in_points3D, point_3d_line))
{
Expand Down Expand Up @@ -798,7 +797,6 @@ load_colmap_points_3D_txt(std::string const& points3D_filename,
}
feature_3d.refs = refs;
features.push_back(feature_3d);
++num_points_3d;
}
in_points3D.close();
}
Expand Down

0 comments on commit 417911f

Please sign in to comment.