1
0
Fork 0
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:
epriestley 2013-10-07 12:52:01 -07:00
parent 0598600476
commit 68c854b967

View file

@ -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,