diff --git a/app/actions/route_transfer_owner.rb b/app/actions/route_transfer_owner.rb index f24a0f8b435..5cfbce95571 100644 --- a/app/actions/route_transfer_owner.rb +++ b/app/actions/route_transfer_owner.rb @@ -2,9 +2,6 @@ module VCAP::CloudController class RouteTransferOwner - class Error < ::StandardError - end - class << self def transfer(route, target_space, user_audit_info) return route if target_space.name == route.space.name @@ -19,12 +16,6 @@ def transfer(route, target_space, user_audit_info) Repositories::RouteEventRepository.new.record_route_transfer_owner( route, user_audit_info, original_space, target_space.guid) end - - private - - def error!(message) - raise Error.new(message) - end end end end