summaryrefslogtreecommitdiff
path: root/xmake/plugins/format/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/format/main.lua')
-rw-r--r--xmake/plugins/format/main.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/xmake/plugins/format/main.lua b/xmake/plugins/format/main.lua
index 57c63dda7..66bcebcb3 100644
--- a/xmake/plugins/format/main.lua
+++ b/xmake/plugins/format/main.lua
@@ -96,19 +96,9 @@ function _get_targets(targetname, group_pattern)
if targetname then
table.insert(targets_root, project.target(targetname))
else
- local depset = hashset.new()
- local targets = {}
for _, target in pairs(project.targets()) do
local group = target:get("group")
if (target:is_default() and not group_pattern) or option.get("all") or (group_pattern and group and group:match(group_pattern)) then
- for _, depname in ipairs(target:get("deps")) do
- depset:insert(depname)
- end
- table.insert(targets, target)
- end
- end
- for _, target in pairs(targets) do
- if not depset:has(target:name()) then
table.insert(targets_root, target)
end
end