From 081bc20d66e7be5b8bafc298e9446676479f001f Mon Sep 17 00:00:00 2001 From: Anilforextra Date: Thu, 12 Aug 2021 16:58:03 +0545 Subject: [PATCH] Remove unused swap template. (cherry picked from commit e3872a244d27e898a0f534a367ab48c250769b08) --- scene/2d/line_builder.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scene/2d/line_builder.cpp b/scene/2d/line_builder.cpp index 48d6cece812..b0a1d42c633 100644 --- a/scene/2d/line_builder.cpp +++ b/scene/2d/line_builder.cpp @@ -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 -static inline void swap(T &a, T &b) { - T tmp = a; - a = b; - b = tmp; -} - static float calculate_total_distance(const Vector &points) { float d = 0.f; for (int i = 1; i < points.size(); ++i) {