Whenever a building or land used for, or occupied by, a nonconforming use has been discontinued for a period of one year for residential dwellings or three years for other uses, such use shall not thereafter be used or occupied as a nonconforming use. Mobile homes which are vacant for one year or greater shall be considered abandoned for the purpose of this chapter.