mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
Janitor: Remove obsolete code
This commit is contained in:
parent
033cc4f1b7
commit
bf7917ab7c
@ -477,11 +477,6 @@ void RimProject::setProjectFileNameAndUpdateDependencies( const QString& project
|
||||
cases[i]->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
||||
}
|
||||
|
||||
for ( RimSummaryCase* summaryCase : allSummaryCases() )
|
||||
{
|
||||
summaryCase->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
||||
}
|
||||
|
||||
// Update path to well path file cache
|
||||
for ( RimOilField* oilField : oilFields )
|
||||
{
|
||||
@ -494,10 +489,6 @@ void RimProject::setProjectFileNameAndUpdateDependencies( const QString& project
|
||||
{
|
||||
oilField->formationNamesCollection()->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
||||
}
|
||||
if ( oilField->summaryCaseMainCollection() != nullptr )
|
||||
{
|
||||
oilField->summaryCaseMainCollection()->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
||||
}
|
||||
|
||||
CVF_ASSERT( oilField->fractureDefinitionCollection() );
|
||||
oilField->fractureDefinitionCollection()->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
||||
|
@ -75,14 +75,6 @@ RifSummaryReaderInterface* RimCalculatedSummaryCase::summaryReader()
|
||||
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;
|
||||
void createSummaryReaderInterface() override;
|
||||
RifSummaryReaderInterface* summaryReader() override;
|
||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override;
|
||||
|
||||
void buildMetaData();
|
||||
|
||||
|
@ -320,14 +320,6 @@ RifSummaryReaderInterface* RimDerivedSummaryCase::summaryReader()
|
||||
return m_reader.get();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimDerivedSummaryCase::updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath )
|
||||
{
|
||||
// NOP
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -79,7 +79,6 @@ public:
|
||||
|
||||
void createSummaryReaderInterface() override;
|
||||
RifSummaryReaderInterface* summaryReader() override;
|
||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override;
|
||||
|
||||
void updateDisplayNameFromCases();
|
||||
|
||||
|
@ -49,8 +49,6 @@ public:
|
||||
void createSummaryReaderInterface() override;
|
||||
RifSummaryReaderInterface* summaryReader() override;
|
||||
|
||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override {}
|
||||
|
||||
const RimEnsembleCurveSet* curveSet() const;
|
||||
|
||||
void calculate( const std::vector<RimSummaryCase*>& sumCases, bool includeIncompleteCurves );
|
||||
|
@ -77,15 +77,6 @@ QString RimFileSummaryCase::caseName() const
|
||||
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 caseName() const override;
|
||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override;
|
||||
|
||||
void createSummaryReaderInterfaceThreadSafe( RiaThreadSafeLogger* threadSafeLogger );
|
||||
void createSummaryReaderInterface() override;
|
||||
|
@ -174,14 +174,6 @@ QString RimGridSummaryCase::eclipseGridFileName() const
|
||||
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 caseName() const override;
|
||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override;
|
||||
|
||||
void createSummaryReaderInterface() override;
|
||||
RifSummaryReaderInterface* summaryReader() override;
|
||||
|
@ -63,15 +63,6 @@ QString RimObservedSummaryData::caseName() const
|
||||
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();
|
||||
|
||||
QString caseName() const override;
|
||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override;
|
||||
|
||||
QString identifierName() const;
|
||||
RifEclipseSummaryAddress::SummaryVarCategory summaryCategory() const;
|
||||
|
@ -69,8 +69,6 @@ public:
|
||||
virtual RifReaderRftInterface* rftReader();
|
||||
virtual QString errorMessagesFromReader();
|
||||
|
||||
virtual void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) = 0;
|
||||
|
||||
void setSummaryHeaderFileName( const QString& fileName );
|
||||
|
||||
bool isObservedData() const;
|
||||
|
@ -712,18 +712,6 @@ QString RimSummaryCaseMainCollection::uniqueShortNameForCase( RimSummaryCase* su
|
||||
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 );
|
||||
|
||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath );
|
||||
|
||||
void updateAutoShortName();
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user