Skip to content

Commit 017e99a

Browse files
committed
remove unnecessary inlines
1 parent c6fc1bd commit 017e99a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cpp/map_closures/DensityMap.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct DensityMap {
3838
DensityMap(DensityMap &&other) = default;
3939
DensityMap &operator=(DensityMap &&other) = default;
4040
DensityMap &operator=(const DensityMap &other) = delete;
41-
inline uint8_t &operator()(const int x, const int y) { return grid.at<uint8_t>(x, y); }
41+
uint8_t &operator()(const int x, const int y) { return grid.at<uint8_t>(x, y); }
4242
Eigen::Vector2i lower_bound;
4343
double resolution;
4444
cv::Mat grid;

cpp/map_closures/VoxelMap.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ using Vector3dVector = std::vector<Eigen::Vector3d>;
4646

4747
struct VoxelBlock {
4848
void emplace_back(const Eigen::Vector3d &point);
49-
inline constexpr size_t size() const { return num_points; }
49+
size_t size() const { return num_points; }
5050
auto cbegin() const { return points.cbegin(); }
5151
auto cend() const { return std::next(points.cbegin(), num_points); }
5252
Eigen::Vector3d front() const { return points.front(); }
@@ -57,9 +57,9 @@ struct VoxelBlock {
5757
struct VoxelMap {
5858
explicit VoxelMap(const double voxel_size, const double max_distance);
5959

60-
inline void Clear() { map_.clear(); }
61-
inline bool Empty() const { return map_.empty(); }
62-
inline size_t NumVoxels() const { return map_.size(); }
60+
void Clear() { map_.clear(); }
61+
bool Empty() const { return map_.empty(); }
62+
size_t NumVoxels() const { return map_.size(); }
6363

6464
void IntegrateFrame(const Vector3dVector &points, const Eigen::Matrix4d &pose);
6565
void AddPoints(const Vector3dVector &points);

0 commit comments

Comments
 (0)