mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor: Remove obsolete code
This commit is contained in:
@@ -477,11 +477,6 @@ void RimProject::setProjectFileNameAndUpdateDependencies( const QString& project
|
|||||||
cases[i]->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
cases[i]->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( RimSummaryCase* summaryCase : allSummaryCases() )
|
|
||||||
{
|
|
||||||
summaryCase->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update path to well path file cache
|
// Update path to well path file cache
|
||||||
for ( RimOilField* oilField : oilFields )
|
for ( RimOilField* oilField : oilFields )
|
||||||
{
|
{
|
||||||
@@ -494,10 +489,6 @@ void RimProject::setProjectFileNameAndUpdateDependencies( const QString& project
|
|||||||
{
|
{
|
||||||
oilField->formationNamesCollection()->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
oilField->formationNamesCollection()->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
||||||
}
|
}
|
||||||
if ( oilField->summaryCaseMainCollection() != nullptr )
|
|
||||||
{
|
|
||||||
oilField->summaryCaseMainCollection()->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
|
||||||
}
|
|
||||||
|
|
||||||
CVF_ASSERT( oilField->fractureDefinitionCollection() );
|
CVF_ASSERT( oilField->fractureDefinitionCollection() );
|
||||||
oilField->fractureDefinitionCollection()->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
oilField->fractureDefinitionCollection()->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
||||||
|
|||||||
@@ -75,14 +75,6 @@ RifSummaryReaderInterface* RimCalculatedSummaryCase::summaryReader()
|
|||||||
return m_calculatedCurveReader.get();
|
return m_calculatedCurveReader.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RimCalculatedSummaryCase::updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath )
|
|
||||||
{
|
|
||||||
// Nothing to do here
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ public:
|
|||||||
QString caseName() const override;
|
QString caseName() const override;
|
||||||
void createSummaryReaderInterface() override;
|
void createSummaryReaderInterface() override;
|
||||||
RifSummaryReaderInterface* summaryReader() override;
|
RifSummaryReaderInterface* summaryReader() override;
|
||||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override;
|
|
||||||
|
|
||||||
void buildMetaData();
|
void buildMetaData();
|
||||||
|
|
||||||
|
|||||||
@@ -320,14 +320,6 @@ RifSummaryReaderInterface* RimDerivedSummaryCase::summaryReader()
|
|||||||
return m_reader.get();
|
return m_reader.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RimDerivedSummaryCase::updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath )
|
|
||||||
{
|
|
||||||
// NOP
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ public:
|
|||||||
|
|
||||||
void createSummaryReaderInterface() override;
|
void createSummaryReaderInterface() override;
|
||||||
RifSummaryReaderInterface* summaryReader() override;
|
RifSummaryReaderInterface* summaryReader() override;
|
||||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override;
|
|
||||||
|
|
||||||
void updateDisplayNameFromCases();
|
void updateDisplayNameFromCases();
|
||||||
|
|
||||||
|
|||||||
@@ -49,8 +49,6 @@ public:
|
|||||||
void createSummaryReaderInterface() override;
|
void createSummaryReaderInterface() override;
|
||||||
RifSummaryReaderInterface* summaryReader() override;
|
RifSummaryReaderInterface* summaryReader() override;
|
||||||
|
|
||||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override {}
|
|
||||||
|
|
||||||
const RimEnsembleCurveSet* curveSet() const;
|
const RimEnsembleCurveSet* curveSet() const;
|
||||||
|
|
||||||
void calculate( const std::vector<RimSummaryCase*>& sumCases, bool includeIncompleteCurves );
|
void calculate( const std::vector<RimSummaryCase*>& sumCases, bool includeIncompleteCurves );
|
||||||
|
|||||||
@@ -77,15 +77,6 @@ QString RimFileSummaryCase::caseName() const
|
|||||||
return caseFileName.completeBaseName();
|
return caseFileName.completeBaseName();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RimFileSummaryCase::updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath )
|
|
||||||
{
|
|
||||||
// m_summaryHeaderFilename =
|
|
||||||
// RimTools::relocateFile( m_summaryHeaderFilename().path(), newProjectPath, oldProjectPath, nullptr, nullptr );
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ public:
|
|||||||
|
|
||||||
QString summaryHeaderFilename() const override;
|
QString summaryHeaderFilename() const override;
|
||||||
QString caseName() const override;
|
QString caseName() const override;
|
||||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override;
|
|
||||||
|
|
||||||
void createSummaryReaderInterfaceThreadSafe( RiaThreadSafeLogger* threadSafeLogger );
|
void createSummaryReaderInterfaceThreadSafe( RiaThreadSafeLogger* threadSafeLogger );
|
||||||
void createSummaryReaderInterface() override;
|
void createSummaryReaderInterface() override;
|
||||||
|
|||||||
@@ -174,14 +174,6 @@ QString RimGridSummaryCase::eclipseGridFileName() const
|
|||||||
return m_eclipseCase()->gridFileName();
|
return m_eclipseCase()->gridFileName();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RimGridSummaryCase::updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath )
|
|
||||||
{
|
|
||||||
// Shouldn't have to do anything
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ public:
|
|||||||
|
|
||||||
QString summaryHeaderFilename() const override;
|
QString summaryHeaderFilename() const override;
|
||||||
QString caseName() const override;
|
QString caseName() const override;
|
||||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override;
|
|
||||||
|
|
||||||
void createSummaryReaderInterface() override;
|
void createSummaryReaderInterface() override;
|
||||||
RifSummaryReaderInterface* summaryReader() override;
|
RifSummaryReaderInterface* summaryReader() override;
|
||||||
|
|||||||
@@ -63,15 +63,6 @@ QString RimObservedSummaryData::caseName() const
|
|||||||
return caseFileName.completeBaseName();
|
return caseFileName.completeBaseName();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RimObservedSummaryData::updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath )
|
|
||||||
{
|
|
||||||
// m_summaryHeaderFilename =
|
|
||||||
// RimTools::relocateFile( m_summaryHeaderFilename(), newProjectPath, oldProjectPath, nullptr, nullptr );
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ public:
|
|||||||
RimObservedSummaryData();
|
RimObservedSummaryData();
|
||||||
|
|
||||||
QString caseName() const override;
|
QString caseName() const override;
|
||||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override;
|
|
||||||
|
|
||||||
QString identifierName() const;
|
QString identifierName() const;
|
||||||
RifEclipseSummaryAddress::SummaryVarCategory summaryCategory() const;
|
RifEclipseSummaryAddress::SummaryVarCategory summaryCategory() const;
|
||||||
|
|||||||
@@ -69,8 +69,6 @@ public:
|
|||||||
virtual RifReaderRftInterface* rftReader();
|
virtual RifReaderRftInterface* rftReader();
|
||||||
virtual QString errorMessagesFromReader();
|
virtual QString errorMessagesFromReader();
|
||||||
|
|
||||||
virtual void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) = 0;
|
|
||||||
|
|
||||||
void setSummaryHeaderFileName( const QString& fileName );
|
void setSummaryHeaderFileName( const QString& fileName );
|
||||||
|
|
||||||
bool isObservedData() const;
|
bool isObservedData() const;
|
||||||
|
|||||||
@@ -712,18 +712,6 @@ QString RimSummaryCaseMainCollection::uniqueShortNameForCase( RimSummaryCase* su
|
|||||||
return shortName;
|
return shortName;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RimSummaryCaseMainCollection::updateFilePathsFromProjectPath( const QString& newProjectPath,
|
|
||||||
const QString& oldProjectPath )
|
|
||||||
{
|
|
||||||
for ( auto summaryCase : m_cases )
|
|
||||||
{
|
|
||||||
summaryCase->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -70,8 +70,6 @@ public:
|
|||||||
|
|
||||||
QString uniqueShortNameForCase( RimSummaryCase* summaryCase );
|
QString uniqueShortNameForCase( RimSummaryCase* summaryCase );
|
||||||
|
|
||||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath );
|
|
||||||
|
|
||||||
void updateAutoShortName();
|
void updateAutoShortName();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user