Skip to content

Commit

Permalink
Removes no longer used function
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-langholtz committed Jan 21, 2024
1 parent c47ed14 commit 5d1c17b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions Library/include/playrho/d2/Body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ class Body
/// @post <code>GetInvRotI()</code> returns <code>InvRotInertia{}</code> if
/// <code>bd.type != BodyType::Dynamic</code>, otherwise it returns value of
/// @a bd.invRotI.
/// @post <code>GetTransformation()</code> will return the value of
/// <code>::playrho::d2::GetTransformation(const BodyConf&)</code> given @a bd.
/// @post <code>GetVelocity()</code> will return the value as if
/// <code>SetVelocity(const Velocity&)</code> had been called with the values of
/// @a bd.linearVelocity and @a bd.angularVelocity as the velocity.
Expand Down
4 changes: 0 additions & 4 deletions Library/include/playrho/d2/BodyConf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,6 @@ constexpr BodyConf GetDefaultBodyConf() noexcept
/// @relatedalso Body
BodyConf GetBodyConf(const Body& body);

/// @brief Gets the transformation associated with the given configuration.
/// @relatedalso BodyConf
Transformation GetTransformation(const BodyConf& conf) noexcept;

/// @brief Gets the location of the given configuration.
/// @relatedalso BodyConf
constexpr auto GetLocation(const BodyConf& conf) noexcept
Expand Down
6 changes: 0 additions & 6 deletions Library/source/playrho/d2/BodyConf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,4 @@ BodyConf GetBodyConf(const Body& body)
return def;
}

Transformation GetTransformation(const BodyConf& conf) noexcept
{
// This must match what GetTransformation(Body{}) returns
return GetTransform1(conf.sweep);
}

} // namespace playrho::d2

0 comments on commit 5d1c17b

Please sign in to comment.