From b8ca0550eb6a972eae6d9834dcb2638198e32259 Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Mon, 9 Feb 2026 00:33:03 +0100 Subject: [PATCH] Remove two unused private methods Summary: * Last call to private `PhrictionTransactionEditor::setNewContent()` was removed in rP64cee4a9. * Last call to private `PhabricatorRepository::isSSHProtocol()` was removed in rP24ebac8a. Test Plan: Grep the codebase. 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/D26740 --- .../phriction/editor/PhrictionTransactionEditor.php | 5 ----- .../repository/storage/PhabricatorRepository.php | 11 ----------- 2 files changed, 16 deletions(-) diff --git a/src/applications/phriction/editor/PhrictionTransactionEditor.php b/src/applications/phriction/editor/PhrictionTransactionEditor.php index 2293a236a6..d5b2ee3ae7 100644 --- a/src/applications/phriction/editor/PhrictionTransactionEditor.php +++ b/src/applications/phriction/editor/PhrictionTransactionEditor.php @@ -33,11 +33,6 @@ final class PhrictionTransactionEditor return $this->oldContent; } - private function setNewContent(PhrictionContent $content) { - $this->newContent = $content; - return $this; - } - public function getNewContent() { return $this->newContent; } diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php index 0b631db27f..1ebf866546 100644 --- a/src/applications/repository/storage/PhabricatorRepository.php +++ b/src/applications/repository/storage/PhabricatorRepository.php @@ -1248,17 +1248,6 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO return $uri; } - /** - * Determine if a protocol is SSH or SSH-like. - * - * @param string $protocol A protocol string, like "http" or "ssh". - * @return bool True if the protocol is SSH-like. - * @task uri - */ - private function isSSHProtocol($protocol) { - return ($protocol == 'ssh' || $protocol == 'svn+ssh'); - } - public function delete() { $this->openTransaction(); -- 2.51.2