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

@@ -19,7 +19,6 @@
#include "RimWellPathGeometryDefTools.h"
#include "RimModeledWellPath.h"
#include "RimTools.h"
#include "RimWellPathCollection.h"
#include "RimWellPathGeometryDef.h"
#include "RimWellPathTarget.h"
@@ -52,7 +51,7 @@ std::vector<RimWellPathGeometryDef*> RimWellPathGeometryDefTools::linkedDefiniti
{
std::vector<RimWellPathGeometryDef*> linkedWellPathGeoDefs;
for ( auto w : RimTools::wellPathCollection()->allWellPaths() )
for ( auto w : RimWellPathCollection::instance()->allWellPaths() )
{
auto modeledWellPath = dynamic_cast<RimModeledWellPath*>( w );
if ( !modeledWellPath ) continue;