From de67f00d0e39a2a0914e11bae43730f32ed80388 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 7 Oct 2013 13:29:05 -0700 Subject: [PATCH] Remove AphrontRedirectException Summary: Fixes T3909. Waiting on Facebook to confirm this is unused. Test Plan: `grep` Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T3909 Differential Revision: https://secure.phabricator.com/D7193 --- src/__phutil_library_map__.php | 2 -- .../exception/AphrontRedirectException.php | 18 ------------------ webroot/index.php | 3 --- 3 files changed, 23 deletions(-) delete mode 100644 src/aphront/exception/AphrontRedirectException.php diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index b58a6d570f..58a6311d0e 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -74,7 +74,6 @@ phutil_register_library_map(array( 'AphrontPlainTextResponse' => 'aphront/response/AphrontPlainTextResponse.php', 'AphrontProgressBarView' => 'view/widget/bars/AphrontProgressBarView.php', 'AphrontProxyResponse' => 'aphront/response/AphrontProxyResponse.php', - 'AphrontRedirectException' => 'aphront/exception/AphrontRedirectException.php', 'AphrontRedirectResponse' => 'aphront/response/AphrontRedirectResponse.php', 'AphrontReloadResponse' => 'aphront/response/AphrontReloadResponse.php', 'AphrontRequest' => 'aphront/AphrontRequest.php', @@ -2180,7 +2179,6 @@ phutil_register_library_map(array( 'AphrontPlainTextResponse' => 'AphrontResponse', 'AphrontProgressBarView' => 'AphrontBarView', 'AphrontProxyResponse' => 'AphrontResponse', - 'AphrontRedirectException' => 'AphrontException', 'AphrontRedirectResponse' => 'AphrontResponse', 'AphrontReloadResponse' => 'AphrontRedirectResponse', 'AphrontRequestFailureView' => 'AphrontView', diff --git a/src/aphront/exception/AphrontRedirectException.php b/src/aphront/exception/AphrontRedirectException.php deleted file mode 100644 index f7b2a5fd42..0000000000 --- a/src/aphront/exception/AphrontRedirectException.php +++ /dev/null @@ -1,18 +0,0 @@ -uri = $uri; - } - - public function getURI() { - return $this->uri; - } - -} diff --git a/webroot/index.php b/webroot/index.php index 7ee22338cc..92a41bce8e 100644 --- a/webroot/index.php +++ b/webroot/index.php @@ -83,9 +83,6 @@ try { $controller->willProcessRequest($uri_data); $response = $controller->processRequest(); } - } catch (AphrontRedirectException $ex) { - $response = id(new AphrontRedirectResponse()) - ->setURI($ex->getURI()); } catch (Exception $ex) { $original_exception = $ex; $response = $application->handleException($ex); -- 2.51.2