Skip to content

Commit a59d328

Browse files
authored
WarpX and PML headers: remove unused fieldFactory() methods (#5679)
This PR removes two unused functions defined in the headers `WarpX.H` and `PML.H`
1 parent 550a7f1 commit a59d328

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

Source/BoundaryConditions/PML.H

-5
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,6 @@ private:
222222
// Factory for field data
223223
std::unique_ptr<amrex::FabFactory<amrex::FArrayBox> > pml_field_factory;
224224

225-
[[nodiscard]] amrex::FabFactory<amrex::FArrayBox> const& fieldFactory () const noexcept
226-
{
227-
return *pml_field_factory;
228-
}
229-
230225
#ifdef AMREX_USE_EB
231226
[[nodiscard]] amrex::EBFArrayBoxFactory const& fieldEBFactory () const noexcept {
232227
return static_cast<amrex::EBFArrayBoxFactory const&>(*pml_field_factory);

Source/WarpX.H

-6
Original file line numberDiff line numberDiff line change
@@ -1481,12 +1481,6 @@ private:
14811481
// Factory for field data
14821482
amrex::Vector<std::unique_ptr<amrex::FabFactory<amrex::FArrayBox> > > m_field_factory;
14831483

1484-
[[nodiscard]]
1485-
amrex::FabFactory<amrex::FArrayBox> const& fieldFactory (int lev) const noexcept
1486-
{
1487-
return *m_field_factory[lev];
1488-
}
1489-
14901484
/** Stop the simulation at the end of the current step due to a received Unix signal?
14911485
*/
14921486
bool m_exit_loop_due_to_interrupt_signal = false;

0 commit comments

Comments
 (0)