From this webpage:
The Buffalo, Rochester & Pittsburgh Railway was primarily a coal hauling railroad which ran from the coal fields of central Pennsylvania to the ports of Rochester & Buffalo. In Western New York, the lines formed a "Y" shape connecting Buffalo, Rochester, and Salamanca. The line ran north from Salamanca to Ashford Junction where it split and continued to Rochester and Buffalo.