Part of meta-issue #2002650: [meta, no patch] improve maintainability by removing unused local variables

File /core/modules/content_translation/content_translation.module

Line 236: Unused local variable $entity_position
Line 279: Unused local variable $entity_type
Line 858: Unused local variable $field_type

Comments

mrsinguyen’s picture

Status: Active » Needs review
StatusFileSize
new1.7 KB
enhdless’s picture

Unfortunately, the patch failed to apply.

areke’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs reroll
areke’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new3.65 KB

Re-rolled.

areke’s picture

StatusFileSize
new1.98 KB

I accidentally provided the wrong patch before.

areke’s picture

Status: Needs review » Needs work
areke’s picture

Status: Needs work » Needs review

The last submitted patch, 4: 2081149-4.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 5: 2081149-5.patch, failed testing.

deneo’s picture

Status: Needs work » Needs review
StatusFileSize
new1.17 KB
areke’s picture

Status: Needs review » Reviewed & tested by the community

Oops, it looks like the variable $entity_type does actually get used. The patch that deneo provided applies cleanly and doesn't take remove $entity_type, so it is the right patch. The patch looks good!

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.