function protectedSharedUtilsSharedCodeUpdatePostMergeHook(topSharedUtilsDir)
    % PROTECTEDSHAREDUTILSSHAREDCODEUPDATEPOSTMERGEHOOK
    
    % Copyright 2020 The MathWorks, Inc.
    
    % Remove const_params.c/cpp if this is a sharedCodeUpdate workflow.
    %
    % To allow these files to be merged correctly, they get re-generated
    % from the merged of filemap.mat during the unpack for code generation
    % itself.
    constParams = coder.internal.SharedUtilities.ConstParamsName;
    filesToDelete = { ...
        fullfile(topSharedUtilsDir, [constParams '.c']), ...
        fullfile(topSharedUtilsDir, [constParams '.cpp'])};
    for kFile = 1:numel(filesToDelete)
        if isfile(filesToDelete{kFile})
            delete(filesToDelete{kFile})
        end
    end
end
