From 74e28bc2a7b0caa3f05bd1fbb6122ffc0829e611 Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Tue, 30 Apr 2024 18:21:17 +0200 Subject: [PATCH] Reports: Remove unused variable Summary: This variable feels unneeded in this function. It may have a better and more fulfilling life after finding a new function. Test Plan: Read slowly and aloud all code in the function. Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25609 --- .../controller/PhabricatorProjectReportsController.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/applications/project/controller/PhabricatorProjectReportsController.php b/src/applications/project/controller/PhabricatorProjectReportsController.php index cfd9ee3253..a45d155bee 100644 --- a/src/applications/project/controller/PhabricatorProjectReportsController.php +++ b/src/applications/project/controller/PhabricatorProjectReportsController.php @@ -18,11 +18,6 @@ final class PhabricatorProjectReportsController $project = $this->getProject(); $id = $project->getID(); - $can_edit = PhabricatorPolicyFilter::hasCapability( - $viewer, - $project, - PhabricatorPolicyCapability::CAN_EDIT); - $nav = $this->newNavigation( $project, PhabricatorProject::ITEM_REPORTS);