mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4348 System , cppcheck : Remove unused variables
This commit is contained in:
@@ -63,7 +63,6 @@ void Rim2dIntersectionViewCollection::syncFromExistingIntersections( bool doUpda
|
|||||||
parentCase->descendantsIncludingThisOfType(allOrderedIntersectionsInCase);
|
parentCase->descendantsIncludingThisOfType(allOrderedIntersectionsInCase);
|
||||||
|
|
||||||
std::set<RimIntersection*> currentIntersections(allOrderedIntersectionsInCase.begin(), allOrderedIntersectionsInCase.end());
|
std::set<RimIntersection*> currentIntersections(allOrderedIntersectionsInCase.begin(), allOrderedIntersectionsInCase.end());
|
||||||
std::set<RimIntersection*> intersectionsNeedingViews = currentIntersections;
|
|
||||||
|
|
||||||
// Delete views without a valid intersection
|
// Delete views without a valid intersection
|
||||||
|
|
||||||
|
|||||||
@@ -149,7 +149,6 @@ RimObservedData* RimObservedDataCollection::createAndAddCvsObservedDataFromFile(
|
|||||||
if (!fileExists(fileName, errorText)) return nullptr;
|
if (!fileExists(fileName, errorText)) return nullptr;
|
||||||
|
|
||||||
RimObservedData* observedData = nullptr;
|
RimObservedData* observedData = nullptr;
|
||||||
bool parseOk = false;
|
|
||||||
|
|
||||||
RimCsvUserData* userData = new RimCsvUserData();
|
RimCsvUserData* userData = new RimCsvUserData();
|
||||||
RicPasteAsciiDataToSummaryPlotFeatureUi* parseOptions = userData->parseOptions();
|
RicPasteAsciiDataToSummaryPlotFeatureUi* parseOptions = userData->parseOptions();
|
||||||
@@ -186,7 +185,6 @@ RimObservedData* RimObservedDataCollection::createAndAddCvsObservedDataFromFile(
|
|||||||
{
|
{
|
||||||
this->m_observedDataArray.push_back(userData);
|
this->m_observedDataArray.push_back(userData);
|
||||||
observedData = userData;
|
observedData = userData;
|
||||||
parseOk = true;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -183,7 +183,6 @@ cvf::Vec3d RigFisbonesGeometry::closestMainAxis(const cvf::Vec3d& vec)
|
|||||||
if (cvf::Math::abs(vec.z()) > maxValue)
|
if (cvf::Math::abs(vec.z()) > maxValue)
|
||||||
{
|
{
|
||||||
maxComponent = 2;
|
maxComponent = 2;
|
||||||
maxValue = cvf::Math::abs(vec.z());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (maxComponent == 0)
|
if (maxComponent == 0)
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ void RigNNCData::processConnections(const RigMainGrid& mainGrid)
|
|||||||
const RigCell& c1 = mainGrid.globalCellArray()[m_connections[cnIdx].m_c1GlobIdx];
|
const RigCell& c1 = mainGrid.globalCellArray()[m_connections[cnIdx].m_c1GlobIdx];
|
||||||
const RigCell& c2 = mainGrid.globalCellArray()[m_connections[cnIdx].m_c2GlobIdx];
|
const RigCell& c2 = mainGrid.globalCellArray()[m_connections[cnIdx].m_c2GlobIdx];
|
||||||
|
|
||||||
bool foundAnyOverlap = false;
|
|
||||||
std::vector<size_t> connectionPolygon;
|
std::vector<size_t> connectionPolygon;
|
||||||
std::vector<cvf::Vec3d> connectionIntersections;
|
std::vector<cvf::Vec3d> connectionIntersections;
|
||||||
cvf::StructGridInterface::FaceType connectionFace = cvf::StructGridInterface::NO_FACE;
|
cvf::StructGridInterface::FaceType connectionFace = cvf::StructGridInterface::NO_FACE;
|
||||||
@@ -53,7 +52,6 @@ void RigNNCData::processConnections(const RigMainGrid& mainGrid)
|
|||||||
|
|
||||||
if (connectionFace != cvf::StructGridInterface::NO_FACE)
|
if (connectionFace != cvf::StructGridInterface::NO_FACE)
|
||||||
{
|
{
|
||||||
foundAnyOverlap = true;
|
|
||||||
// Found an overlap polygon. Store data about connection
|
// Found an overlap polygon. Store data about connection
|
||||||
|
|
||||||
m_connections[cnIdx].m_c1Face = connectionFace;
|
m_connections[cnIdx].m_c1Face = connectionFace;
|
||||||
|
|||||||
Reference in New Issue
Block a user