1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Minor breaking change: removed the legacy swapVariables function. Just use std::swap instead and it'll do a better job!

This commit is contained in:
jules 2017-09-27 12:31:36 +01:00
parent 27a6903cac
commit b44cb8b710

View file

@ -262,9 +262,6 @@ bool isPositiveAndNotGreaterThan (int valueToTest, Type upperLimit) noexcept
}
//==============================================================================
/** @deprecated Just use std::swap instead! */
JUCE_DEPRECATED_WITH_BODY (template <typename Type> void swapVariables (Type& variable1, Type& variable2), { std::swap (variable1, variable2); })
/** Handy function for avoiding unused variables warning. */
template <typename Type1>
void ignoreUnused (const Type1&) noexcept {}