Closed (fixed)
Project:
Easy Breadcrumb
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2026 at 23:51 UTC
Updated:
11 Aug 2026 at 23:20 UTC
Jump to comment: Most recent
EasyBreadcrumbConstants.php has one constant and three functions that have no usages. These should be removed.
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 #3
loopduplicate commentedComment #4
csakiistvanComment #5
csakiistvanEnvironment
Prerequisites
Steps
SEGMENTS_SEPARATORconstant and the unused static methodsdefaultExcludedPaths(),defaultReplacedTitles(), anddefaultCustomPaths()fromEasyBreadcrumbConstants.ddev drush crExpected results
grepreturns no references to the removed symbols outside their (now deleted) declarations.EasyBreadcrumbConstantsclass autoloads and theeasy_breadcrumb.breadcrumbservice resolves, so breadcrumbs continue to render.Actual results
A codebase-wide search confirms the
SEGMENTS_SEPARATORconstant and the three static methods are defined only inEasyBreadcrumbConstants.phpand referenced nowhere else, so they are genuine dead code. After removing them per MR !180, caches rebuild cleanly, the class still autoloads, and the breadcrumb builder service resolves normally — the module keeps working with the unused code gone.Testing produced with the assistance of an LLM.
Comment #6
greg boggsComment #8
greg boggsThanks y'all!