ol.format.Polyline cleanup

Remove function only used in the unit tests.
@Turbo87 does this seems ok to you?