mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
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
This commit is contained in:
parent
b1b1ff83f2
commit
de67f00d0e
3 changed files with 0 additions and 23 deletions
|
@ -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',
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* TODO: Remove this entirely? We have no callsites.
|
||||
*/
|
||||
final class AphrontRedirectException extends AphrontException {
|
||||
|
||||
private $uri;
|
||||
|
||||
public function __construct($uri) {
|
||||
$this->uri = $uri;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
}
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue