From a0293e2e9244ac2756a7fb7b093b3710bed3ed18 Mon Sep 17 00:00:00 2001 From: Michael Oleske Date: Wed, 27 Jul 2022 17:51:29 +0000 Subject: [PATCH] Remove unused custom error Co-authored-by: Michael Oleske Co-authored-by: Alex Rocha --- app/actions/route_transfer_owner.rb | 9 --------- 1 file changed, 9 deletions(-) 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