Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brryan committed Sep 27, 2024
1 parent abbef3c commit 2a26ada
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 28 deletions.
3 changes: 0 additions & 3 deletions singularity-opac/neutrinos/brt_neutrinos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ class BRTOpacity {
printf("Burrows-Reddy-Thompson analytic neutrino opacity.\n");
}

PORTABLE_INLINE_FUNCTION
pc GetPhysicalConstants() const { return pc(); }

inline void Finalize() noexcept {}

PORTABLE_INLINE_FUNCTION
Expand Down
5 changes: 0 additions & 5 deletions singularity-opac/neutrinos/gray_opacity_neutrinos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ class GrayOpacity {
printf("Gray opacity. kappa = %g\n", kappa_);
}

PORTABLE_INLINE_FUNCTION
RuntimePhysicalConstants GetPhysicalConstants() const {
return GetRuntimePhysicalConstants(pc());
}

inline void Finalize() noexcept {}

PORTABLE_INLINE_FUNCTION
Expand Down
7 changes: 0 additions & 7 deletions singularity-opac/neutrinos/neutrino_variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,6 @@ class Variant {
opac_);
}

// template <typename T>
// PORTABLE_INLINE_FUNCTION T GetPhysicalConstants() const {
// return mpark::visit([](auto &opac) { return opac.GetPhysicalConstants();
// },
// opac_);
//}

inline void Finalize() noexcept {
return mpark::visit([](auto &opac) { return opac.Finalize(); }, opac_);
}
Expand Down
3 changes: 0 additions & 3 deletions singularity-opac/neutrinos/tophat_emissivity_neutrinos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ class TophatEmissivity {
numax_);
}

PORTABLE_INLINE_FUNCTION
pc GetPhysicalConstants() const { return pc(); }

inline void Finalize() noexcept {}

PORTABLE_INLINE_FUNCTION
Expand Down
3 changes: 0 additions & 3 deletions singularity-opac/photons/gray_opacity_photons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ class GrayOpacity {
printf("Gray opacity. kappa = %g\n", kappa_);
}

PORTABLE_INLINE_FUNCTION
pc GetPhysicalConstants() const { return pc(); }

inline void Finalize() noexcept {}

PORTABLE_INLINE_FUNCTION
Expand Down
7 changes: 0 additions & 7 deletions singularity-opac/photons/photon_variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,6 @@ class Variant {
opac_);
}

// template <typename T>
// PORTABLE_INLINE_FUNCTION T GetPhysicalConstants() const {
// return mpark::visit([](auto &opac) { return opac.GetPhysicalConstants();
// },
// opac_);
//}

inline void Finalize() noexcept {
return mpark::visit([](auto &opac) { return opac.Finalize(); }, opac_);
}
Expand Down

0 comments on commit 2a26ada

Please sign in to comment.