Skip to content

Commit

Permalink
Removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
danielduberg committed May 1, 2020
1 parent 208867c commit 0932a93
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions ufomap/include/ufomap/octree_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -1421,22 +1421,6 @@ class OctreeBase
// Random functions
//

void getDiscreteCloud(const PointCloud& cloud, PointCloud& discrete_cloud,
unsigned int depth = 0) const
{
discrete_cloud.reserve(cloud.size());

KeySet discretize;
for ([[maybe_unused]] const auto& [point, color] : cloud)
{
Key key(coordToKey(point, depth)); // One extra copy?
if (discretize.insert(key).second)
{
discrete_cloud.push_back(keyToCoord(key));
}
}
}

unsigned int getTreeDepthLevels() const
{
return depth_levels_;
Expand Down Expand Up @@ -1658,7 +1642,7 @@ class OctreeBase
s << "data_size " << getDataSize(data) << std::endl;
s << "compressed_data_size " << getDataSize(compressed_data) << std::endl;
s << "data" << std::endl;
s << compress ? compressed_data.rdbuf() : data.rdbuf();
s << (compress ? compressed_data.rdbuf() : data.rdbuf());

if (s.good())
{
Expand Down

0 comments on commit 0932a93

Please sign in to comment.