See meta #2002650: [meta, no patch] improve maintainability by removing unused local variables

core/includes/module.inc

  • Unused local variable $schema_store (289)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

louisjimenez’s picture

Assigned: Unassigned » louisjimenez
Status: Active » Needs review
FileSize
530 bytes

Patch attached

Status: Needs review » Needs work
Issue tags: -Novice

The last submitted patch, Drupal_core-removed-unused-local-variable-2002728-1.patch, failed testing.

kerasai’s picture

Status: Needs work » Needs review
Issue tags: +Novice
kerasai’s picture

Status: Needs review » Reviewed & tested by the community

Looks good. Nothing tricky and the testbot is happy.

louisjimenez’s picture

Thanks for reviewing!

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

Needs a reroll as this code has been refactored to Drupal\Core\Extension\ModuleHandler

kerasai’s picture

Status: Needs work » Needs review
Issue tags: -Novice

Status: Needs review » Needs work
Issue tags: +Novice

The last submitted patch, Drupal_core-removed-unused-local-variable-2002728-1.patch, failed testing.

martin107’s picture

Status: Needs work » Needs review

This patch has become irrelevant and the issue should be marked complete/invalid.

Results from searching the code base:-

1) module.inc has been removed/renamed.

2) there is only one definition of function module_enable() -- bears no relation to function referred to in the patch.

3) patch removes a single line $schema_store = Drupal::keyValue('system.schema');
searching code base for this line -- shows one occurrence in which the variable is used later in function.

martin107’s picture

Status: Needs review » Closed (cannot reproduce)

Changed status after conversation with Cottser