From 1500a5709067b308158606daa7d5217e1ed495d4 Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Mon, 3 Jun 2024 11:25:34 +0200 Subject: [PATCH] Remove unused method shouldCopyWhenCreatingSimilarTask() Summary: Nothing in the codebase calls or reads this function. If it was ever used in some implementation of a custom field, then it was likely in context of the `Similar Task` functionality removed in 52f7446eeaa36ee1716fd1ed6e90b26b964e11ac. Test Plan: Grep the codebase. Reviewers: O1 Blessed Committers, avivey Reviewed By: O1 Blessed Committers, avivey Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25677 --- .../maniphest/field/ManiphestCustomField.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/applications/maniphest/field/ManiphestCustomField.php b/src/applications/maniphest/field/ManiphestCustomField.php index bbd97babf4..26c18cbb8c 100644 --- a/src/applications/maniphest/field/ManiphestCustomField.php +++ b/src/applications/maniphest/field/ManiphestCustomField.php @@ -15,17 +15,4 @@ abstract class ManiphestCustomField return new ManiphestCustomFieldNumericIndex(); } - /** - * When the user creates a task, the UI prompts them to "Create another - * similar task". This copies some fields (e.g., Owner and CCs) but not other - * fields (e.g., description). If this custom field should also be copied, - * return true from this method. - * - * @return bool True to copy the default value from the template task when - * creating a new similar task. - */ - public function shouldCopyWhenCreatingSimilarTask() { - return false; - } - }