mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 13:52:40 +01:00
Remove dead rejectImpossiblePolicy()
method
Summary: Ref T603. Apparently we made all policies possible at some point. Go us! This has no callsites. Test Plan: `grep`, notice it's a private method Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T603 Differential Revision: https://secure.phabricator.com/D7259
This commit is contained in:
parent
0598600476
commit
68c854b967
1 changed files with 0 additions and 27 deletions
|
@ -233,33 +233,6 @@ final class PhabricatorPolicyFilter {
|
|||
return false;
|
||||
}
|
||||
|
||||
private function rejectImpossiblePolicy(
|
||||
PhabricatorPolicyInterface $object,
|
||||
$policy,
|
||||
$capability) {
|
||||
|
||||
if (!$this->raisePolicyExceptions) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch ($capability) {
|
||||
case PhabricatorPolicyCapability::CAN_VIEW:
|
||||
$message = pht("This object has an impossible view policy.");
|
||||
break;
|
||||
case PhabricatorPolicyCapability::CAN_EDIT:
|
||||
$message = pht("This object has an impossible edit policy.");
|
||||
break;
|
||||
case PhabricatorPolicyCapability::CAN_JOIN:
|
||||
$message = pht("This object has an impossible join policy.");
|
||||
break;
|
||||
default:
|
||||
$message = pht("This object has an impossible policy.");
|
||||
break;
|
||||
}
|
||||
|
||||
throw new PhabricatorPolicyException($message);
|
||||
}
|
||||
|
||||
public function rejectObject(
|
||||
PhabricatorPolicyInterface $object,
|
||||
$policy,
|
||||
|
|
Loading…
Reference in a new issue