Janitor: Remove obsolete deleteChildren

Remove obsolete deleteChildren() in destructors. deleteChildren() is called in the destructor of PdmChildArrayField
This commit is contained in:
Magne Sjaastad
2024-07-25 13:58:31 +02:00
committed by GitHub
parent 34e30b38d3
commit 33ffa10ec9
71 changed files with 2 additions and 318 deletions

View File

@@ -34,14 +34,6 @@ RimEnsembleWellLogsCollection::RimEnsembleWellLogsCollection()
CAF_PDM_InitFieldNoDefault( &m_ensembleWellLogs, "EnsembleWellLogsCollection", "" );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimEnsembleWellLogsCollection::~RimEnsembleWellLogsCollection()
{
m_ensembleWellLogs.deleteChildren();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -31,7 +31,6 @@ class RimEnsembleWellLogsCollection : public caf::PdmObject
public:
RimEnsembleWellLogsCollection();
~RimEnsembleWellLogsCollection() override;
std::vector<RimEnsembleWellLogs*> ensembleWellLogs() const;

View File

@@ -53,14 +53,6 @@ RimOsduWellLog::RimOsduWellLog()
setDeletable( true );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimOsduWellLog::~RimOsduWellLog()
{
m_wellLogChannels.deleteChildren();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -44,7 +44,6 @@ class RimOsduWellLog : public RimWellLog
public:
RimOsduWellLog();
~RimOsduWellLog() override;
void setName( const QString& name );
QString name() const override;

View File

@@ -51,14 +51,6 @@ RimWellLogCsvFile::RimWellLogCsvFile()
m_wellLogDataFile = nullptr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimWellLogCsvFile::~RimWellLogCsvFile()
{
m_wellLogChannels.deleteChildren();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -41,7 +41,6 @@ class RimWellLogCsvFile : public RimWellLogFile
public:
RimWellLogCsvFile();
~RimWellLogCsvFile() override;
QString name() const override { return m_name; }

View File

@@ -82,14 +82,6 @@ RimWellLogLasFile::RimWellLogLasFile()
m_lasFileHasValidDate = false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimWellLogLasFile::~RimWellLogLasFile()
{
m_wellLogChannels.deleteChildren();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -44,7 +44,6 @@ class RimWellLogLasFile : public RimWellLogFile
public:
RimWellLogLasFile();
~RimWellLogLasFile() override;
static RimWellLogLasFile* readWellLogFile( const QString& logFilePath, QString* errorMessage );