function removeCallbacks(this)
%

%   Copyright 2017 The MathWorks, Inc.

bd = this.getBlockDiagram;
% Remove HDL callbacks. These need to match the callbacks created in
% registerEventsAtPostLoad.m
if bd.hasCallback('PostNameChange', 'HDLCCModelRenameCallback')
    bd.removeCallback('PostNameChange', 'HDLCCModelRenameCallback');
end
if bd.hasCallback('PostLoad', 'HDLCCPostLoadCallback')
    bd.removeCallback('PostLoad', 'HDLCCPostLoadCallback');
end
if bd.hasCallback('PostSave', 'HDLCCPostSaveCallback')
    bd.removeCallback('PostSave', 'HDLCCPostSaveCallback');
end
if bd.hasCallback('PreSave', 'HDLCCPreSaveCallback')
    bd.removeCallback('PreSave', 'HDLCCPreSaveCallback');
end
end
