Skip to content

Commit e289d29

Browse files
fix(registry): drop unused build_config_language helper
Widening unique_name to all callers made the helper dead code; -Werror unused-function broke CI on the production build. Signed-off-by: rudi193-cmd <rudi193@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: rudi193-cmd <rudi193@gmail.com>
1 parent c06a363 commit e289d29

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎src/pipeline/registry.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -726,16 +726,6 @@ static const char *path_basename(const char *path) {
726726
return slash ? slash + 1 : path;
727727
}
728728

729-
/* Build and configuration languages have no cross-language call semantics: a
730-
* Makefile's `$(eval ...)` or a CMake `function(...)` names nothing in a C
731-
* file, so a bare-name bind into another language is always a collision
732-
* (2026-09-16 probe: kernel Makefile targets bound to `sk_psock.eval`). */
733-
static bool build_config_language(CBMLanguage lang) {
734-
return lang == CBM_LANG_MAKEFILE || lang == CBM_LANG_CMAKE || lang == CBM_LANG_YAML ||
735-
lang == CBM_LANG_TOML || lang == CBM_LANG_JSON || lang == CBM_LANG_INI ||
736-
lang == CBM_LANG_DOCKERFILE;
737-
}
738-
739729
bool cbm_suppress_cross_language_suffix_match(CBMLanguage caller_lang, const char *target_file_path,
740730
const char *strategy) {
741731
/* Two same-named symbols in different languages: suffix_match picks one

0 commit comments

Comments
 (0)