Remove dead code (#3212)

It just deletes what should already be deleted.
This commit is contained in:
Astralcircle 2024-12-10 22:33:34 +03:00 committed by GitHub
parent 530fcfcb0e
commit 6a9bc3cd56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,27 +14,6 @@ local rad2deg = 180 / pi
local deg2rad = pi / 180
local LerpVector = LerpVector
-- Remove this when a later, mandatory update is made.
-- These were added in the August (08) 9 (09) 2023 (23) update
if VERSION < 230809 then
function math.CubicBezier(frac, p0, p1, p2, p3)
local frac2 = frac * frac
local inv = 1 - frac
local inv2 = inv * inv
return inv2 * inv * p0 + 3 * inv2 * frac * p1 + 3 * inv * frac2 * p2 + frac2 * frac * p3
end
function math.QuadraticBezier(frac, p0, p1, p2)
local frac2 = frac * frac
local inv = 1 - frac
local inv2 = inv * inv
return inv2 * p0 + 2 * inv * frac * p1 + frac2 * p2
end
end
local quadraticBezier = math.QuadraticBezier
local cubicBezier = math.CubicBezier