Closed (fixed)
Project:
Field tools
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2024 at 12:58 UTC
Updated:
11 Jan 2026 at 10:54 UTC
Jump to comment: Most recent
There are a lot of unused variables in the following files:
/src/FieldOptions.php
/src/Form/FieldConfigCloneForm.php
/src/Form/ConfigMultipleImportForm.php
/src/Form/FieldBulkCloneForm.php
/src/DisplayCloner.php
/src/Controller/FieldGraph.php
/src/Controller/FieldList.php
/src/Controller/FieldReferencesList.php
field_tools.admin.inc
These variables need to be either removed or used in some way.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
andrii momotov commentedI assigned the task myself because I plan to fix this issue and make a Merge Request.
Please do not work on this issue.
Comment #4
andrii momotov commentedI did not delete those unused variables that have TODO comments next to them, which means that these variables can be used in the future.
Please review MR. Thanks!
Comment #6
vensiresTook the opportunity and also removed unused namespaces too.
Comment #7
anybodyPlease ensure that this is not being reverted: https://www.drupal.org/project/field_tools/issues/3324488
Looks like this needs an update!
Comment #8
vensiresMR now requires conflict resolution anyway so I set it as "Needs work".
As for your last comment @anybody, maybe we should check this ticket after #3324488: Field groups are not copied when cloning display is resolved?
Comment #9
vensiresMR fixed. Still have to decide what to do related to #3324488: Field groups are not copied when cloning display.
Comment #10
andrii momotov commentedHi @tedbow @joachim,
Could you please review the MR?
Thanks.
Comment #11
joachim commentedThere's no need to change field_tools.admin.inc -- it's dead code. I left it in out of superstition that I've not yet converted everything that was in there to OO code.
Comment #12
andrii momotov commentedHi @joachim,
I’ve updated the MR where I removed the changes in field_tools.admin.inc according to your comment.
Please review when you have time. Thanks.
Comment #14
andrii momotov commentedReviewed the MR and merged. Thanks.