If the right-of-way or location of any part of an unfinished railroad remains unused for railroad purposes for 10 years or longer, the right-of-way or location is deemed abandoned and may be purchased or condemned by a railroad company under Title 5, Subtitle 4 of this article and Title 12 of the Real Property Article.