Trim excessive inline

Methods and templates are implicitly marked as inline already.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2023-12-11 11:33:27 +01:00
parent 7eba65813e
commit 2e65d0351c
16 changed files with 279 additions and 279 deletions

View File

@@ -28,14 +28,14 @@ namespace Assert
}
template <class T>
inline void AreEqual(const T& a, const T& b)
void AreEqual(const T& a, const T& b)
{
if (!(a == b))
throw std::runtime_error("not equal");
}
template <class T, size_t N>
inline void AreEqual(const T (&a)[N], const T (&b)[N])
void AreEqual(const T (&a)[N], const T (&b)[N])
{
for (size_t i = 0; i < N; ++i)
if (!(a[i] == b[i]))
@@ -55,7 +55,7 @@ namespace Assert
}
template <class T>
inline void AreNotEqual(const T& a, const T& b)
void AreNotEqual(const T& a, const T& b)
{
if (a == b)
throw std::runtime_error("equal");
@@ -74,7 +74,7 @@ namespace Assert
}
template <class E, typename F>
inline void ExpectException(F functor)
void ExpectException(F functor)
{
try { functor(); }
catch (const E&) { return; }