Remove unused scope argument from api.gettarget()
This commit is contained in:
parent
57667cc16a
commit
d22bc1a4bc
@ -266,15 +266,20 @@
|
||||
api._deprecations = "on"
|
||||
|
||||
|
||||
--
|
||||
-- Find the right target object for a given scope.
|
||||
--
|
||||
|
||||
function api.gettarget(scope)
|
||||
---
|
||||
-- Find the currently active configuration scope.
|
||||
--
|
||||
-- @return
|
||||
-- The currently active configuration set object.
|
||||
---
|
||||
|
||||
function api.gettarget()
|
||||
return api.scope.project or api.scope.solution or api.scope.root
|
||||
end
|
||||
|
||||
|
||||
|
||||
--
|
||||
-- Callback for all API functions; everything comes here first, and then
|
||||
-- gets parceled out to the individual set...() functions.
|
||||
@ -293,7 +298,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
local target = api.gettarget(field.scope)
|
||||
local target = api.gettarget()
|
||||
local status, err = configset.store(target, field, value)
|
||||
if err then
|
||||
error(err, 3)
|
||||
@ -313,7 +318,7 @@
|
||||
-- return the current baked value
|
||||
if not value then return end
|
||||
|
||||
local target = api.gettarget(field.scope)
|
||||
local target = api.gettarget()
|
||||
local hasDeprecatedValues = (type(field.deprecated) == "table")
|
||||
|
||||
-- Build a list of values to be removed. If this field has deprecated
|
||||
|
Loading…
Reference in New Issue
Block a user