#4348 System , cppcheck : Remove unused functions

This commit is contained in:
Magne Sjaastad
2019-04-21 09:11:20 +02:00
parent d152147fd4
commit 8d4142187e
11 changed files with 13 additions and 90 deletions

View File

@@ -160,36 +160,6 @@ size_t RigMainGrid::findReservoirCellIndexFromPoint(const cvf::Vec3d& point) con
return cellContainingPoint;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<size_t> RigMainGrid::findAllReservoirCellIndicesMatching2dPoint(const cvf::Vec2d& point2d) const
{
cvf::BoundingBox gridBoundingVox = boundingBox();
cvf::Vec3d highestPoint(point2d, gridBoundingVox.max().z());
cvf::Vec3d lowestPoint(point2d, gridBoundingVox.min().z());
cvf::BoundingBox rayBBox;
rayBBox.add(highestPoint);
rayBBox.add(lowestPoint);
std::vector<size_t> cellIndices;
m_mainGrid->findIntersectingCells(rayBBox, &cellIndices);
cvf::Vec3d hexCorners[8];
for (size_t cellIndex : cellIndices)
{
m_mainGrid->cellCornerVertices(cellIndex, hexCorners);
if (RigHexIntersectionTools::lineIntersectsHexCell(highestPoint, lowestPoint, hexCorners))
{
cellIndices.push_back(cellIndex);
}
}
return cellIndices;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -58,7 +58,6 @@ public:
const RigCell& cellByGridAndGridLocalCellIdx(size_t gridIdx, size_t gridLocalCellIdx) const;
size_t reservoirCellIndexByGridAndGridLocalCellIndex(size_t gridIdx, size_t gridLocalCellIdx) const;
size_t findReservoirCellIndexFromPoint(const cvf::Vec3d& point) const;
std::vector<size_t> findAllReservoirCellIndicesMatching2dPoint(const cvf::Vec2d& point2d) const;
void addLocalGrid(RigLocalGrid* localGrid);
size_t gridCountOnFile() const;