dev/financial#131 Remove last places where Core Processors return error object
[civicrm-core.git] / CRM / Core / LegacyErrorHandler.php
index ae0f1f9859351ac4be8a127edc2003fb2676b575..f82b3ce6d3d2f9f2b72ff42be5118f085d54fc5c 100644 (file)
@@ -20,18 +20,6 @@ class CRM_Core_LegacyErrorHandler {
         CRM_Utils_Array::value('message_title', $params),
         CRM_Utils_Array::value('message_type', $params, 'error')
       );
-
-      // @todo remove this code - legacy redirect path is an interim measure for moving redirects out of BAO
-      // to somewhere slightly more acceptable. they should not be part of the exception class & should
-      // be managed @ the form level - if you find a form that is triggering this piece of code
-      // you should log a ticket for it to be removed with details about the form you were on.
-      if (!empty($params['legacy_redirect_path'])) {
-        if (CRM_Utils_System::isDevelopment()) {
-          $intentionalENotice = "How did you get HERE?! - Please log in JIRA";
-          // here we could set a message telling devs to log it per above
-        }
-        CRM_Utils_System::redirect($params['legacy_redirect_path'], $params['legacy_redirect_query']);
-      }
     }
   }