insert already calls contains

This commit is contained in:
Basile Burg 2018-07-02 01:02:02 +02:00
parent ba80b6e828
commit 39378d7a47
1 changed files with 1 additions and 4 deletions

View File

@ -602,10 +602,7 @@ begin
begin
dep := libraryByAlias[itm.dependencies[j]];
if dep.isNotNil then
begin
if not sel.contains(dep) then
sel.insert(dep)
end
sel.insert(dep)
else
//auto update: item removed, detect on usage that it has disapeared
itm.dependencies.Delete(j);