remove delphi-style code