Replace RimTools::wellPathCollection() with RimWellPathCollection::instance()

Remove the redundant wrapper function and update all call sites to use RimWellPathCollection::instance() directly.
Remove unused #include "RimTools.h" from files using RimWellPathCollection::instance() directly
This commit is contained in:
Magne Sjaastad committed 2026-03-18 13:41:27 +01:00
1 parent 211ae24241
commit 83f667cdf8
43 files changed
+60 -120

No files matched your search

@@ -25,7 +25,6 @@
#include "RimEclipseCase.h"
#include "RimMainPlotCollection.h"
#include "RimSimWellInView.h"
#include "RimTools.h"
#include "RimWellLogPlotCollection.h"
#include "RimWellPathCollection.h"
@@ -49,7 +48,7 @@ RigEclipseWellLogExtractor* RiaExtractionTools::findOrCreateWellLogExtractor( co
{
if ( !eclipseCase ) return nullptr;
if ( auto wellPathCollection = RimTools::wellPathCollection() )
if ( auto wellPathCollection = RimWellPathCollection::instance() )
{
auto wellPath = wellPathCollection->tryFindMatchingWellPath( wellName );
return RiaExtractionTools::findOrCreateWellLogExtractor( wellPath, eclipseCase );