EasyBreadcrumbConstants.php has one constant and three functions that have no usages. These should be removed.
Issue fork easy_breadcrumb-3613147
Show commands
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!