diff options
| author | Robert | 2017-04-21 17:37:14 +0200 |
|---|---|---|
| committer | Robert | 2017-04-24 09:03:11 +0200 |
| commit | 365e927cc18b46af00e3c2f0754aabe3b77e890f (patch) | |
| tree | dedaea93d79c077538fab8ffb10e9e39d35ce56f /app/helpers/stop_areas_helper.rb | |
| parent | b5d3dc6e1f0120a999af4be3693f3fdc95a727a4 (diff) | |
| download | chouette-core-365e927cc18b46af00e3c2f0754aabe3b77e890f.tar.bz2 | |
all deprecation wrnings removed from specs, some minor view refactors (:xxx => ... -> xxx: ...); Refs: #??? [amend me]
Diffstat (limited to 'app/helpers/stop_areas_helper.rb')
| -rw-r--r-- | app/helpers/stop_areas_helper.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/app/helpers/stop_areas_helper.rb b/app/helpers/stop_areas_helper.rb index 2188a272d..3e04fac7d 100644 --- a/app/helpers/stop_areas_helper.rb +++ b/app/helpers/stop_areas_helper.rb @@ -33,27 +33,6 @@ module StopAreasHelper @stop_area.stop_area_type == 'stop_place' || @stop_area.stop_area_type == 'commercial_stop_point' end - def access_links_pairs(access_links) - hpairs = Hash.new - pairs = Array.new - access_links.each do |link| - key = pair_key(link) - pair = nil - if (hpairs.has_key? key) - pair = hpairs[key] - else - pair = AccessLinkPair.new - pairs << pair - hpairs[key] = pair - end - if (link.link_orientation_type == "access_point_to_stop_area") - pair.from_access_point = link - else - pair.to_access_point = link - end - end - pairs - end def pair_key(access_link) "#{access_link.access_point.id}-#{access_link.stop_area.id}" |
