One of the oldest churches in Dublin , it was built in the 17th century on the site of a Danish chapel , but heavily restored in the 19th century .
The church was restored in the 19th century by the bishops .