From 3f5b5e1cd78d0f67acae51340a03ae11192bcef6 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 27 Aug 2022 21:49:07 +0800 Subject: remove unused contains --- xmake/rules/c++/modules/modules_support/msvc.lua | 8 -------- 1 file changed, 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) -- cgit v1.3.1