]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/notes_controller.rb
Require a valid session token to resend a confirmation
[rails.git] / app / controllers / notes_controller.rb
index 5ae136f29aac5c8ce3548cfb232e0d8ea761eb69..ea32441f2f5db86aa4ff7780cf0b629dcd9f4538 100644 (file)
@@ -9,7 +9,6 @@ class NotesController < ApplicationController
   before_action :check_api_writable, :only => [:create, :comment, :close, :reopen, :destroy]
   before_action :require_allow_write_notes, :only => [:create, :comment, :close, :reopen, :destroy]
   before_action :set_locale
-  after_action :compress_output
   around_action :api_call_handle_error, :api_call_timeout
 
   ##
@@ -300,17 +299,6 @@ class NotesController < ApplicationController
   # utility functions below.
   #------------------------------------------------------------
 
-  ##
-  # Render an OK response
-  def render_ok
-    if params[:format] == "js"
-      render :text => "osbResponse();", :content_type => "text/javascript"
-    else
-      render :text => "ok " + @note.id.to_s + "\n", :content_type => "text/plain" if @note
-      render :text => "ok\n", :content_type => "text/plain" unless @note
-    end
-  end
-
   ##
   # Get the maximum number of results to return
   def result_limit