When the board of supervisors desires to take any public lands previously granted or dedicated to a use or purpose for which they are no longer used, it shall pass an ordinance declaring its intention and shall petition the court of common pleas for leave to file the bond of the township to secure any person or persons who may be entitled to compensation for the taking. The court shall direct notice to be given by publication in at least one newspaper circulating generally in the township. The court may increase the amount of the bond, shall hear all exceptions that are filed against the petition and the sufficiency of the bond and may grant or deny the request of the petition. Upon the granting of the petition and the approval of the bond, the board of supervisors may enter lands for the purposes of erecting public buildings. The bond, which shall be in the name of the Commonwealth for the use of any person or persons who are entitled to damages by reason of the taking of the lands, shall remain on file for their use and benefit.
53 P.S. § 66702