Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
petercamps committed Dec 10, 2024
1 parent e3044f1 commit 631a361
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
10 changes: 0 additions & 10 deletions SKIRT/core/Snapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,6 @@ double Snapshot::velocityDispersion(int m) const

////////////////////////////////////////////////////////////////////

double Snapshot::velocityDispersion(Position bfr) const
{
thread_local EntityCollection entities; // can be reused for all queries in a given execution thread
getEntities(entities, bfr);
return entities.averageValue([this](int m) { return velocityDispersion(m); },
[this](int m) { return currentMass(m); });
}

////////////////////////////////////////////////////////////////////

Vec Snapshot::magneticField(int m) const
{
const auto& propv = properties(m);
Expand Down
6 changes: 0 additions & 6 deletions SKIRT/core/Snapshot.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,6 @@ class Snapshot
of range, the behavior is undefined. */
double velocityDispersion(int m) const;

/** This function returns the velocity dispersion at the
specified point \f${\bf{r}}\f$. If the point is outside the domain, the function returns
zero dispersion. If the velocity dispersion is not being imported, the behavior is
undefined. */
double velocityDispersion(Position bfr) const;

/** This function returns true if the magnetic field is being imported, and false otherwise. */
bool hasMagneticField() const { return _magneticFieldIndex >= 0; }

Expand Down

0 comments on commit 631a361

Please sign in to comment.