Skip to content
Snippets Groups Projects
Commit 1ab18bda authored by Timo Koch's avatar Timo Koch
Browse files

Remove the getTarget method as it is not needed. We can access the target_ variable directly.

parent 2e5eaa8b
No related branches found
No related tags found
No related merge requests found
......@@ -148,16 +148,10 @@ class FoamGridEntity :
target_ = target;
}
/** \brief Get this FoamGridEntityImp object */
const FoamGridEntityImp<dimgrid, dimgrid, dimworld>* getTarget() const
{
return target_;
}
//! equality
bool equals(const Dune::FoamGridEntity<codim, dimgrid, GridImp>& other) const
{
return getTarget() == other.getTarget();
return target_ == other.target_;
}
};
......@@ -467,16 +461,10 @@ class FoamGridEntity<0, 2, GridImp> :
target_ = target;
}
/** \brief Get this FoamGridEntityImp object */
const FoamGridEntityImp<dimgrid, dimgrid, dimworld>* getTarget() const
{
return target_;
}
//! equality
bool equals(const Dune::FoamGridEntity<0, dimgrid, GridImp>& other) const
{
return getTarget() == other.getTarget();
return target_ == other.target_;
}
const FoamGridEntityImp<dimgrid, dimgrid ,dimworld>* target_;
......@@ -769,16 +757,10 @@ class FoamGridEntity<0, 1, GridImp> :
target_ = target;
}
/** \brief Get this FoamGridEntityImp object */
const FoamGridEntityImp<dimgrid, dimgrid, dimworld>* getTarget() const
{
return target_;
}
//! equality
bool equals(const Dune::FoamGridEntity<0, dimgrid, GridImp>& other) const
{
return getTarget() == other.getTarget();
return target_ == other.target_;
}
const FoamGridEntityImp<dimgrid, dimgrid ,dimworld>* target_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment