X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f696b5439eab14f50c8f2f74ae39eedd6efa64d1..29323be33b4158700c29022625526b47695bf581:/app/controllers/api/relations_controller.rb diff --git a/app/controllers/api/relations_controller.rb b/app/controllers/api/relations_controller.rb index ce52382e7..3181a5df1 100644 --- a/app/controllers/api/relations_controller.rb +++ b/app/controllers/api/relations_controller.rb @@ -122,23 +122,5 @@ module Api head :bad_request end end - - private - - def relations_for_object(objtype) - relationids = RelationMember.where(:member_type => objtype, :member_id => params[:id]).collect(&:relation_id).uniq - - @relations = [] - - Relation.find(relationids).each do |relation| - @relations << relation if relation.visible - end - - # Render the result - respond_to do |format| - format.xml - format.json - end - end end end