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:
Jason Perkins 2015-03-03 15:01:17 -05:00
parent e6718b2d51
commit 77a4c81406
2 changed files with 1 additions and 29 deletions

View File

@ -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

View File

@ -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