]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_blocks_controller.rb
Factor out common code for looking up users
[rails.git] / app / controllers / user_blocks_controller.rb
index e681a194a842d2c4e6376e557ddb45ac7b6aabca..103909e382e01d39de6221824f6157f26b654af9 100644 (file)
@@ -120,14 +120,6 @@ class UserBlocksController < ApplicationController
     end
   end
 
-  ##
-  # ensure that there is a "this_user" instance variable
-  def lookup_this_user
-    unless @this_user = User.find_by_display_name(params[:display_name])
-      render_unknown_user params[:display_name]
-    end
-  end
-
   ##
   # ensure that there is a "user_block" instance variable
   def lookup_user_block