Merge pull request #51568 from AnilBK/remove-swap

Remove unused swap template.
This commit is contained in:
Rémi Verschelde
2021-08-12 15:52:05 +02:00
committed by GitHub
-8
View File
@@ -62,14 +62,6 @@ static SegmentIntersectionResult segment_intersection(
return SEGMENT_PARALLEL;
}
// TODO I'm pretty sure there is an even faster way to swap things
template <typename T>
static inline void swap(T &a, T &b) {
T tmp = a;
a = b;
b = tmp;
}
static float calculate_total_distance(const Vector<Vector2> &points) {
float d = 0.f;
for (int i = 1; i < points.size(); ++i) {