An investigation is continuing into the death of a 36-year-old man on the main rail line in south Wales.
Evening commuter services between Cardiff and Swansea were disrupted on Friday after the incident at Pencoed station.
The incident involved the 1701 GMT First Great Western service from Cardiff.
British Transport Police said there were no suspicious circumstances and the man's family have been informed.
First Great Western put on replacement bus services for commuters between Cardiff and Swansea, although rail services returned to normal later.