Remove "*ng" action deprecation and auto-fix
This commit is contained in:
parent
efc152aa3b
commit
43d83f803a
@ -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.
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user