Skip to content

Commit

Permalink
remove deprecation warning in DeAllocEmptyNodeCache but add a check t…
Browse files Browse the repository at this point in the history
…o its overload
  • Loading branch information
Andrea Ponza committed May 2, 2020
1 parent d01aa4c commit 42c3df5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 4 additions & 2 deletions outofcore/include/pcl/outofcore/impl/octree_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,11 @@ namespace pcl
////////////////////////////////////////////////////////////////////////////////

template<typename ContainerT, typename PointT> void
OutofcoreOctreeBase<ContainerT, PointT>::DeAllocEmptyNodeCache (OutofcoreOctreeBaseNode<ContainerT, PointT>* current)
OutofcoreOctreeBase<ContainerT, PointT>::DeAllocEmptyNodeCache (OutofcoreOctreeBaseNode<ContainerT, PointT>* current)
{
if (current == nullptr)
current = root_node_;

if (current->size () == 0)
{
current->flush_DeAlloc_this_only ();
Expand All @@ -486,7 +489,6 @@ namespace pcl
{
DeAllocEmptyNodeCache (current->children[i]);
}

}

////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 1 addition & 3 deletions outofcore/include/pcl/outofcore/octree_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,7 @@ namespace pcl
void
flushToDiskLazy ();

/** \brief DEPRECATED - Flush empty nodes only
* \deprecated
*/
/** \brief Flush empty nodes only */
void
DeAllocEmptyNodeCache ();

Expand Down

0 comments on commit 42c3df5

Please sign in to comment.