summaryrefslogtreecommitdiff
path: root/xmake/core/base/table.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/table.lua')
-rw-r--r--xmake/core/base/table.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/xmake/core/base/table.lua b/xmake/core/base/table.lua
index 49d846e0c..27e6ecb3c 100644
--- a/xmake/core/base/table.lua
+++ b/xmake/core/base/table.lua
@@ -261,13 +261,8 @@ end
-- remove repeat from the given array
function table.unique(array, barrier)
- -- remove repeat for array
if table.is_array(array) then
-
- -- not only one?
if table.getn(array) ~= 1 then
-
- -- done
local exists = {}
local unique = {}
for _, v in ipairs(array) do
@@ -284,13 +279,9 @@ function table.unique(array, barrier)
table.insert(unique, v)
end
end
-
- -- update it
array = unique
end
end
-
- -- ok
return array
end