Remove non-functional action.supportsconfig() call
This function was being called with incorrect arguments that ensured it always returned true. Since no one noticed, I'm going to assume that it isn't being actively used.
This commit is contained in:
parent
e6718b2d51
commit
77a4c81406
@ -203,24 +203,3 @@
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
|
||||
--
|
||||
-- Determines if an action supports a particular configuration.
|
||||
-- @return
|
||||
-- True if the configuration is supported, false otherwise.
|
||||
--
|
||||
|
||||
function action.supportsconfig(act, cfg)
|
||||
if not act then
|
||||
return false
|
||||
end
|
||||
|
||||
if act.supportsconfig then
|
||||
return act.supportsconfig(cfg)
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
|
@ -177,14 +177,7 @@
|
||||
local buildcfg = pairing[1]
|
||||
local platform = pairing[2]
|
||||
local cfg = oven.bakeConfig(self, buildcfg, platform)
|
||||
|
||||
-- Check to make sure this configuration is supported by the current
|
||||
-- action; add it to the project's configuration cache if so.
|
||||
|
||||
if p.action.supportsconfig(cfg) then
|
||||
self.configs[(buildcfg or "*") .. (platform or "")] = cfg
|
||||
end
|
||||
|
||||
self.configs[(buildcfg or "*") .. (platform or "")] = cfg
|
||||
end
|
||||
|
||||
-- Process the sub-objects that are contained by this project. The
|
||||
|
Loading…
Reference in New Issue
Block a user