From 417911f21e63bb15aaf28a292e246d67b3dc1580 Mon Sep 17 00:00:00 2001 From: Andre Schulz Date: Fri, 28 Jun 2024 18:10:33 +0200 Subject: [PATCH] MVE: Remove unused variable in load_colmap_points_3D_txt() 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] --- libs/mve/bundle_io.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/libs/mve/bundle_io.cc b/libs/mve/bundle_io.cc index 7f56d459e..a466fb8bc 100644 --- a/libs/mve/bundle_io.cc +++ b/libs/mve/bundle_io.cc @@ -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)) { @@ -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(); }