summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorAnilforextra <anilforextra@gmail.com>2021-08-12 16:58:03 +0545
committerAnilforextra <anilforextra@gmail.com>2021-08-12 16:58:03 +0545
commite3872a244d27e898a0f534a367ab48c250769b08 (patch)
tree84f465c3f8be672282efa543390870f24795783b /scene/2d
parent67fc611bda7b55b3eeab87f683a5c95ea0d0313f (diff)
Remove unused swap template.
Diffstat (limited to 'scene/2d')
-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) {