Merge pull request #1625 from noresources/remove-ng-action-check

This commit is contained in:
starkos 2021-05-11 14:50:41 -04:00 committed by GitHub
commit 857afd5557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 9 deletions

View File

@ -172,11 +172,6 @@
---
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)
-- Allow the action to initialize stuff.

View File

@ -155,10 +155,6 @@
---
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]
end