Browse Source

MeshTools: removed deprecated removeDuplicates() overload.

Use the general one instead.
pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
7e675acaeb
  1. 19
      src/Magnum/MeshTools/RemoveDuplicates.h

19
src/Magnum/MeshTools/RemoveDuplicates.h

@ -38,12 +38,6 @@
#include "Magnum/Magnum.h"
#include "Magnum/Math/Functions.h"
#ifdef MAGNUM_BUILD_DEPRECATED
#include <tuple>
#include "Magnum/MeshTools/Duplicate.h"
#endif
namespace Magnum { namespace MeshTools {
namespace Implementation {
@ -163,19 +157,6 @@ template<class Vector> std::vector<UnsignedInt> removeDuplicates(std::vector<Vec
return resultIndices;
}
#ifdef MAGNUM_BUILD_DEPRECATED
/**
@copybrief removeDuplicates(std::vector<Vector>&, typename Vector::Type)
@deprecated Use @ref removeDuplicates(std::vector<Vector>&, typename Vector::Type)
instead.
*/
template<class Vector> void removeDuplicates(std::vector<UnsignedInt>& indices, std::vector<Vector>& data, typename Vector::Type epsilon = Math::TypeTraits<typename Vector::Type>::epsilon()) {
std::vector<UnsignedInt> uniqueIndices;
std::tie(uniqueIndices, data) = removeDuplicates(data, epsilon);
indices = MeshTools::duplicate(indices, uniqueIndices);
}
#endif
}}
#endif

Loading…
Cancel
Save