aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/route_sections.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/route_sections.rake')
-rw-r--r--lib/tasks/route_sections.rake17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/tasks/route_sections.rake b/lib/tasks/route_sections.rake
deleted file mode 100644
index d48ddbba4..000000000
--- a/lib/tasks/route_sections.rake
+++ /dev/null
@@ -1,17 +0,0 @@
-namespace :route_sections do
-
- def find_referential(id_or_slug)
- if id_or_slug.to_s =~ /\A\d+\Z/
- Referential.find id_or_slug.to_i
- else
- Referential.find_by slug: id_or_slug
- end
- end
-
- desc "Generate all RouteSections for a given Referential"
- task :create_all, [:referential] => [:environment] do |t, args|
- find_referential(args[:referential]).switch
- OsrmRouteSectionProcessor.create_all
- end
-
-end