Remove "*ng" action deprecation and auto-fix

This commit is contained in:
Renaud Guillard 2021-03-27 17:10:22 +01:00
parent efc152aa3b
commit 43d83f803a
2 changed files with 0 additions and 9 deletions

View File

@ -172,11 +172,6 @@
--- ---
function m.prepareAction() function m.prepareAction()
-- The "next-gen" actions have now replaced their deprecated counterparts.
-- Provide a warning for a little while before I remove them entirely.
if _ACTION and _ACTION:endswith("ng") then
p.warnOnce(_ACTION, "'%s' has been deprecated; use '%s' instead", _ACTION, _ACTION:sub(1, -3))
end
p.action.set(_ACTION) p.action.set(_ACTION)
-- Allow the action to initialize stuff. -- Allow the action to initialize stuff.

View File

@ -155,10 +155,6 @@
--- ---
function action.get(name) function action.get(name)
-- "Next-gen" actions are deprecated
if name and name:endswith("ng") then
name = name:sub(1, -3)
end
return action._list[name] return action._list[name]
end end