When did High Court of Admiralty of Scotland end?

High Court of Admiralty of Scotland ended in 1831.