Skip to content

Commit

Permalink
Remove legacy image controller code #404 (#417)
Browse files Browse the repository at this point in the history
Deleted the lines from the selection indicated in the issue.
  • Loading branch information
milomacphail authored and jywarren committed Mar 22, 2019
1 parent a84341b commit 6a4464f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions app/controllers/images_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,6 @@ class ImagesController < ApplicationController
#Convert model to json without including root name. Eg. 'warpable'
ActiveRecord::Base.include_root_in_json = false

# legacy
def new
@map = Map.find params[:id]
@warpable = Warpable.new
respond_to do |format|
format.html { render :template => 'legacy/new', :layout => false }
format.json { render :json => @warpable }
end
end

# legacy
def uploaded_confirmation
@warpable = Warpable.find params[:id]
render :template => 'legacy/new', :layout => false
end

# proxy, used if MapKnitter is being backed by Amazon S3 file storage,
# to enable client-side distortion using webgl-distort, which requires same-origin
def fetch
Expand Down

0 comments on commit 6a4464f

Please sign in to comment.