summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/msvc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-27 21:49:07 +0800
committerruki <[email protected]>2022-08-27 21:49:07 +0800
commit3f5b5e1cd78d0f67acae51340a03ae11192bcef6 (patch)
treeefa6a53316a1d83eb48773c5564cd01b2b86b5d4 /xmake/rules/c++/modules/modules_support/msvc.lua
parent0de419f2bc05722ebd22d06dd83b92947df2c165 (diff)
remove unused contains
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua
index f7dc7451c..e3c0b6fec 100644
--- a/xmake/rules/c++/modules/modules_support/msvc.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc.lua
@@ -429,14 +429,6 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op
deps = table.keys(module.requires),
sourcefile = module.cppfile,
job = batchjobs:newjob(module.cppfile, function(index, total)
- function contains(t, v)
- for _, flag in ipairs(t) do
- if table.contains(flag, v) then
- return true
- end
- end
- return false
- end
-- append module mapper flags
-- @note we add it at the end to ensure that the full modulemap are already stored in the mapper
local requiresflags = get_requiresflags(target, module.requires)