Remove unused swap template.

(cherry picked from commit e3872a244d)
This commit is contained in:
Anilforextra 2021-08-12 16:58:03 +05:45 committed by Rémi Verschelde
parent ba8551451f
commit 081bc20d66
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -62,14 +62,6 @@ static SegmentIntersectionResult segment_intersection(
return SEGMENT_PARALLEL; 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) { static float calculate_total_distance(const Vector<Vector2> &points) {
float d = 0.f; float d = 0.f;
for (int i = 1; i < points.size(); ++i) { for (int i = 1; i < points.size(); ++i) {