function removeLinkObjects(this, namesToRemove, groupsToRemove, groupsToKeep)
%removeLinkObjects removes specified link objects from buildInfo

% Copyright 2019-2021 The MathWorks, Inc.

arguments
    this
    namesToRemove string = []
    groupsToRemove string = []
    groupsToKeep string = []
end

% Linkable objects in the model reference group will not be removed
groupsToKeep(end+1) = coder.make.internal.BuildInfoGroup.ModelRefGroup;

removeLinkables(this, namesToRemove, groupsToRemove, groupsToKeep);

