function ret = removeBuildToolFromCache(h,buildToolName)
%

%   Copyright 2015 The MathWorks, Inc.

ret = 0;
if ~isempty( h.BuildToolHandles )
    idx = find( strcmp( buildToolName, { h.BuildToolHandles.Name } ) );
    if ~isempty( idx )
        h.BuildToolHandles(idx) = [];
    end
    ret = numel(idx);
end
end
