Skip to content

Commit

Permalink
Remove unused validate_{create/delete}_flavor methods
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jul 6, 2020
1 parent ecbc1d1 commit f3eb604
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/models/flavor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ def self.raw_create_flavor(_ext_management_system, _options = {})
raise NotImplementedError, "raw_create_flavor must be implemented in a subclass"
end

def validate_create_flavor(_ext_management_system, _options = {})
validate_unsupported(_("Create Flavor Operation"))
end

def self.create_flavor(ems_id, options)
raise ArgumentError, _("ems cannot be nil") if ems_id.nil?
ext_management_system = ExtManagementSystem.find(ems_id)
Expand Down Expand Up @@ -110,16 +106,7 @@ def raw_delete_flavor
raise NotImplementedError, _("raw_delete_flavor must be implemented in a subclass")
end

def validate_delete_flavor
validate_unsupported(_("Delete Flavor Operation"))
end

def delete_flavor
raw_delete_flavor
end

def validate_unsupported(message_prefix)
{:available => false,
:message => _("%{message} is not available for %{name}.") % {:message => message_prefix, :name => name}}
end
end

0 comments on commit f3eb604

Please sign in to comment.