From e8d3020e95e725a84f8deca7cbb65d1f7503fda9 Mon Sep 17 00:00:00 2001 From: Tim Wade Date: Thu, 29 Jun 2017 11:12:28 -0700 Subject: [PATCH] Delete some unused methods :scissors: (transferred from ManageIQ/manageiq@6047c65b8c7a6bdbfb6dc8fdb11861280af8861b) --- app/controllers/api/base_controller/parser.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/controllers/api/base_controller/parser.rb b/app/controllers/api/base_controller/parser.rb index 5d3eca2070..6c0346b735 100644 --- a/app/controllers/api/base_controller/parser.rb +++ b/app/controllers/api/base_controller/parser.rb @@ -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"])),