It was rebuilt by the Emperor Valens in the fourth century , restored several times by both the Byzantines and Ottomans , and remained in use up to as recently as the 19th century .
It was becoming worn out and people thought they should not use it .