Commit aa83f978 authored by Martin Heistermann's avatar Martin Heistermann

Add cppcheck suppressions for unused functions that belong to the public library interface

parent 8b6042b6
Pipeline #10526 passed with stage
in 6 minutes and 5 seconds
...@@ -468,6 +468,7 @@ CellHandle TopologyKernel::add_cell(const std::vector<HalfFaceHandle>& _halfface ...@@ -468,6 +468,7 @@ CellHandle TopologyKernel::add_cell(const std::vector<HalfFaceHandle>& _halfface
//======================================================================================== //========================================================================================
/// Set the vertices of an edge /// Set the vertices of an edge
// cppcheck-suppress unusedFunction ; public interface
void TopologyKernel::set_edge(const EdgeHandle& _eh, const VertexHandle& _fromVertex, const VertexHandle& _toVertex) { void TopologyKernel::set_edge(const EdgeHandle& _eh, const VertexHandle& _fromVertex, const VertexHandle& _toVertex) {
assert(_fromVertex.is_valid() && (size_t)_fromVertex.idx() < n_vertices() && !is_deleted(_fromVertex)); assert(_fromVertex.is_valid() && (size_t)_fromVertex.idx() < n_vertices() && !is_deleted(_fromVertex));
...@@ -502,6 +503,7 @@ void TopologyKernel::set_edge(const EdgeHandle& _eh, const VertexHandle& _fromVe ...@@ -502,6 +503,7 @@ void TopologyKernel::set_edge(const EdgeHandle& _eh, const VertexHandle& _fromVe
//======================================================================================== //========================================================================================
/// Set the half-edges of a face /// Set the half-edges of a face
// cppcheck-suppress unusedFunction ; public interface
void TopologyKernel::set_face(const FaceHandle& _fh, const std::vector<HalfEdgeHandle>& _hes) { void TopologyKernel::set_face(const FaceHandle& _fh, const std::vector<HalfEdgeHandle>& _hes) {
Face& f = face(_fh); Face& f = face(_fh);
...@@ -542,6 +544,7 @@ void TopologyKernel::set_face(const FaceHandle& _fh, const std::vector<HalfEdgeH ...@@ -542,6 +544,7 @@ void TopologyKernel::set_face(const FaceHandle& _fh, const std::vector<HalfEdgeH
//======================================================================================== //========================================================================================
/// Set the half-faces of a cell /// Set the half-faces of a cell
// cppcheck-suppress unusedFunction ; public interface
void TopologyKernel::set_cell(const CellHandle& _ch, const std::vector<HalfFaceHandle>& _hfs) { void TopologyKernel::set_cell(const CellHandle& _ch, const std::vector<HalfFaceHandle>& _hfs) {
Cell& c = cell(_ch); Cell& c = cell(_ch);
...@@ -1954,6 +1957,7 @@ void TopologyKernel::delete_multiple_cells(const std::vector<bool>& _tag) { ...@@ -1954,6 +1957,7 @@ void TopologyKernel::delete_multiple_cells(const std::vector<bool>& _tag) {
//======================================================================================== //========================================================================================
// cppcheck-suppress unusedFunction ; public interface
CellIter TopologyKernel::delete_cell_range(const CellIter& _first, const CellIter& _last) { CellIter TopologyKernel::delete_cell_range(const CellIter& _first, const CellIter& _last) {
assert(_first >= cells_begin()); assert(_first >= cells_begin());
......
...@@ -184,6 +184,7 @@ bool FileManager::isHexahedralMesh(const std::string& _filename) const { ...@@ -184,6 +184,7 @@ bool FileManager::isHexahedralMesh(const std::string& _filename) const {
return true; return true;
} }
// cppcheck-suppress unusedFunction ; public interface
bool FileManager::isTetrahedralMesh(const std::string& _filename) const { bool FileManager::isTetrahedralMesh(const std::string& _filename) const {
std::ifstream iff(_filename.c_str(), std::ios::in); std::ifstream iff(_filename.c_str(), std::ios::in);
......
...@@ -330,6 +330,7 @@ void TetrahedralMeshTopologyKernel::collapse_edge(HalfEdgeHandle _heh) ...@@ -330,6 +330,7 @@ void TetrahedralMeshTopologyKernel::collapse_edge(HalfEdgeHandle _heh)
// swapPropertyElements(halfedge_props_begin(), halfedge_props_end(), source, destination); // swapPropertyElements(halfedge_props_begin(), halfedge_props_end(), source, destination);
//} //}
// cppcheck-suppress unusedFunction ; public interface
VertexHandle TetrahedralMeshTopologyKernel::collapse_edge(HalfEdgeHandle _heh) VertexHandle TetrahedralMeshTopologyKernel::collapse_edge(HalfEdgeHandle _heh)
{ {
bool deferred_deletion_tmp = deferred_deletion_enabled(); bool deferred_deletion_tmp = deferred_deletion_enabled();
...@@ -420,6 +421,7 @@ VertexHandle TetrahedralMeshTopologyKernel::collapse_edge(HalfEdgeHandle _heh) ...@@ -420,6 +421,7 @@ VertexHandle TetrahedralMeshTopologyKernel::collapse_edge(HalfEdgeHandle _heh)
} }
// cppcheck-suppress unusedFunction ; public interface
void TetrahedralMeshTopologyKernel::split_edge(HalfEdgeHandle _heh, VertexHandle _vh) void TetrahedralMeshTopologyKernel::split_edge(HalfEdgeHandle _heh, VertexHandle _vh)
{ {
bool deferred_deletion_tmp = deferred_deletion_enabled(); bool deferred_deletion_tmp = deferred_deletion_enabled();
...@@ -448,6 +450,7 @@ void TetrahedralMeshTopologyKernel::split_edge(HalfEdgeHandle _heh, VertexHandle ...@@ -448,6 +450,7 @@ void TetrahedralMeshTopologyKernel::split_edge(HalfEdgeHandle _heh, VertexHandle
} }
// cppcheck-suppress unusedFunction ; public interface
void TetrahedralMeshTopologyKernel::split_face(FaceHandle _fh, VertexHandle _vh) void TetrahedralMeshTopologyKernel::split_face(FaceHandle _fh, VertexHandle _vh)
{ {
bool deferred_deletion_tmp = deferred_deletion_enabled(); bool deferred_deletion_tmp = deferred_deletion_enabled();
...@@ -560,6 +563,7 @@ std::vector<VertexHandle> TetrahedralMeshTopologyKernel::get_halfface_vertices(H ...@@ -560,6 +563,7 @@ std::vector<VertexHandle> TetrahedralMeshTopologyKernel::get_halfface_vertices(H
return std::vector<VertexHandle>(); return std::vector<VertexHandle>();
} }
// cppcheck-suppress unusedFunction ; public interface
std::vector<VertexHandle> TetrahedralMeshTopologyKernel::get_halfface_vertices(HalfFaceHandle hfh, HalfEdgeHandle heh) const std::vector<VertexHandle> TetrahedralMeshTopologyKernel::get_halfface_vertices(HalfFaceHandle hfh, HalfEdgeHandle heh) const
{ {
std::vector<VertexHandle> vertices; std::vector<VertexHandle> vertices;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment