mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-03 12:10:57 -06:00
CppCheck : Remove unused constructor and init all members in constructor
This commit is contained in:
parent
03df2c2540
commit
d8beee3eb1
@ -17,16 +17,11 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RigFractureCell.h"
|
||||
|
||||
#include "RiaLogging.h"
|
||||
|
||||
#include <QString>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigFractureCell::RigFractureCell()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
@ -36,14 +31,7 @@ RigFractureCell::RigFractureCell(std::vector<cvf::Vec3d> polygon, size_t i, size
|
||||
m_polygon = polygon;
|
||||
m_i = i;
|
||||
m_j = j;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigFractureCell::~RigFractureCell()
|
||||
{
|
||||
|
||||
m_concutivityValue = 0.0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -31,12 +31,8 @@ class RigFractureCell
|
||||
{
|
||||
|
||||
public:
|
||||
RigFractureCell();
|
||||
RigFractureCell(std::vector<cvf::Vec3d> polygon, size_t i, size_t j);
|
||||
|
||||
|
||||
virtual ~RigFractureCell();
|
||||
|
||||
const std::vector<cvf::Vec3d>& getPolygon() const { return m_polygon; }
|
||||
double getConductivtyValue() const { return m_concutivityValue; }
|
||||
size_t getI() const { return m_i; }
|
||||
@ -47,11 +43,11 @@ public:
|
||||
|
||||
double cellSizeX() const;
|
||||
double cellSizeZ() const;
|
||||
|
||||
private:
|
||||
std::vector<cvf::Vec3d> m_polygon;
|
||||
double m_concutivityValue;
|
||||
size_t m_i;
|
||||
size_t m_j;
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user