To remove profiling code from project first load it into DelphiXPG and parse it. Once this has been done click the "Remove Profiling Code" tool button.
Manually entered profiling calls will need to be removed by hand.