Skip to content

Commit

Permalink
Delete some unused methods
Browse files Browse the repository at this point in the history
✂️


(transferred from ManageIQ/manageiq@6047c65)
  • Loading branch information
imtayadeway committed Jun 29, 2017
1 parent ff99254 commit e8d3020
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/controllers/api/base_controller/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,6 @@ def parse_tenant(resource)
parse_id(resource, :tenants) unless resource.blank?
end

def fetch_provider(data)
provider_id = parse_id(data, :providers)
raise BadRequestError, 'Missing Provider identifier href or id' if provider_id.nil?
resource_search(provider_id, :providers, collection_class(:providers))
end

def fetch_availability_zone(data)
availability_zone_id = parse_id(data, :availability_zones)
raise BadRequestError, 'Missing availability zone identifier href or id' if availability_zone_id.nil?
resource_search(availability_zone_id, :availability_zones, collection_class(:availability_zones))
end

def parse_ownership(data)
{
:owner => collection_class(:users).find_by(:id => parse_owner(data["owner"])),
Expand Down

0 comments on commit e8d3020

Please sign in to comment.