Janitor: Remove obsolete code

This commit is contained in:
Magne Sjaastad
2021-12-08 10:58:15 +01:00
parent 033cc4f1b7
commit bf7917ab7c
15 changed files with 0 additions and 74 deletions

View File

@@ -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 );

View File

@@ -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
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@@ -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();

View File

@@ -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
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@@ -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();

View File

@@ -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 );

View File

@@ -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 );
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@@ -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;

View File

@@ -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
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@@ -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;

View File

@@ -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 );
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 );
}
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@@ -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: