remove unused code from OTAPI.i