Make UnreserveSingleTrack a static standalone function
commit8ef9c8bd349cdaace179f5a547ad6e08e264b81f
authorcirdan <cirdansw@gmail.com>
Mon, 3 Feb 2014 21:28:29 +0000 (3 22:28 +0100)
committercirdan <cirdansw@gmail.com>
Mon, 3 Feb 2014 21:28:29 +0000 (3 22:28 +0100)
tree70ceb6b38a4817c68119dc51864f8705779e31e9
parentedda26058f47d0a1eaa961fee67fed0e10fe41cb
Make UnreserveSingleTrack a static standalone function

Turn CYapfReserveTrack::UnreserveSingleTrack into a static
standalone function, since it is independent of any template
parameters and only uses field m_origin_tile from
CYapfReserveTrack, which is now supplied through an extra
parameter. This means that only one copy of the function is
required, instead of one per template specialisation.
src/pathfinder/yapf/yapf_rail.cpp