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);