aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/track_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-03-17 17:23:00 +0000
committerLouise Crow <louise.crow@gmail.com>2014-03-24 13:07:50 +0000
commit903d920cbc273262e9975ea1d618b565d005ca27 (patch)
tree8928febf30e6c014f5681c231a88dac131dda37f /app/controllers/track_controller.rb
parent9a731a219702c2f9f20266c8c44d61fa5ec9b92f (diff)
Remove old unused code.
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r--app/controllers/track_controller.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb
index 83e05ebbc..2b0742a34 100644
--- a/app/controllers/track_controller.rb
+++ b/app/controllers/track_controller.rb
@@ -185,14 +185,6 @@ class TrackController < ApplicationController
track_thing.destroy
flash[:notice] = _("You are no longer following {{track_description}}.", :track_description => track_thing.params[:list_description])
redirect_to URI.parse(params[:r]).path
-
- # Reuse code like this if we let medium change again.
- #elsif new_medium == 'email_daily'
- # track_thing.track_medium = new_medium
- # track_thing.created_at = Time.now() # as created_at is used to limit the alerts to start with
- # track_thing.save!
- # flash[:notice] = "You are now tracking " + track_thing.params[:list_description] + " by email daily"
- # redirect_to user_url(track_thing.tracking_user)
else
raise "new medium not handled " + new_medium
end