Skip to content

Commit 6a9bc3c

Browse files
authored
Remove dead code (#3212)
It just deletes what should already be deleted.
1 parent 530fcfc commit 6a9bc3c

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

lua/entities/gmod_wire_expression2/core/vector.lua

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,6 @@ local rad2deg = 180 / pi
1414
local deg2rad = pi / 180
1515

1616
local LerpVector = LerpVector
17-
18-
-- Remove this when a later, mandatory update is made.
19-
-- These were added in the August (08) 9 (09) 2023 (23) update
20-
if VERSION < 230809 then
21-
function math.CubicBezier(frac, p0, p1, p2, p3)
22-
local frac2 = frac * frac
23-
local inv = 1 - frac
24-
local inv2 = inv * inv
25-
26-
return inv2 * inv * p0 + 3 * inv2 * frac * p1 + 3 * inv * frac2 * p2 + frac2 * frac * p3
27-
end
28-
29-
function math.QuadraticBezier(frac, p0, p1, p2)
30-
local frac2 = frac * frac
31-
local inv = 1 - frac
32-
local inv2 = inv * inv
33-
34-
return inv2 * p0 + 2 * inv * frac * p1 + frac2 * p2
35-
end
36-
end
37-
3817
local quadraticBezier = math.QuadraticBezier
3918
local cubicBezier = math.CubicBezier
4019

0 commit comments

Comments
 (0)