Skip to content

Commit

Permalink
removed unused includes of json-cpp. removed unused boost json parser…
Browse files Browse the repository at this point in the history
…. removed empty lines between if else
  • Loading branch information
amock committed Dec 10, 2024
1 parent fd5fc0f commit 97094d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion include/lvr2/io/scanio/MetaFormatFactory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "lvr2/util/Timestamp.hpp"

#include <yaml-cpp/yaml.h>
#include <jsoncpp/json/json.h>

#include "lvr2/io/YAML.hpp"
#include "lvr2/util/IOUtils.hpp"
Expand Down
8 changes: 3 additions & 5 deletions src/liblvr2/algorithm/pmp/TriangleKdTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ unsigned int TriangleKdTree::build_recurse(Node* node, unsigned int max_faces,
left->faces = new Triangles();
left->faces->reserve(node->faces->size() / 2);
auto* right = new Node();
right->faces = new Triangles;
right->faces = new Triangles();
right->faces->reserve(node->faces->size() / 2);

// partition for left and right child
Expand Down Expand Up @@ -133,10 +133,9 @@ unsigned int TriangleKdTree::build_recurse(Node* node, unsigned int max_faces,
// return tree depth
return depth;
}

// or recurse further?
else
{
// or recurse further?
// free my memory
delete node->faces;
node->faces = nullptr;
Expand Down Expand Up @@ -186,10 +185,9 @@ void TriangleKdTree::nearest_recurse(Node* node, const Point& point,
}
}
}

// non-terminal node
else
{
// non-terminal node
Scalar dist = point[node->axis] - node->split;

if (dist <= 0.0)
Expand Down
3 changes: 0 additions & 3 deletions src/liblvr2/io/schema/ScanProjectSchemaRdbx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
#include "lvr2/types/ScanTypes.hpp"
#include "lvr2/io/schema/ScanProjectSchemaRdbx.hpp"
#include <boost/filesystem.hpp>
#include <boost/optional/optional_io.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>

#include <iostream>
#include <fstream>
Expand Down

0 comments on commit 97094d7

Please sign in to comment.