summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-08-12 15:52:05 +0200
committerGitHub <noreply@github.com>2021-08-12 15:52:05 +0200
commit78c8b7ffec388506bc0df32d7c86e3ef45604f6f (patch)
treed83466df1df5d0689d322112f6507f7a3131e0ec
parentfdddfa02fdd97684fdb8f0d355d9f7420792a6dc (diff)
parente3872a244d27e898a0f534a367ab48c250769b08 (diff)
Merge pull request #51568 from AnilBK/remove-swap
Remove unused swap template.
-rw-r--r--scene/2d/line_builder.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/scene/2d/line_builder.cpp b/scene/2d/line_builder.cpp
index c478f03356..a8a2639ccf 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 <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) {