From 8fcc85f23d9a9a9b91fae6ef7b37c2ae8bfd2941 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 15 Jul 2026 16:01:32 +0000 Subject: [PATCH] chore: prune unnecessary code (automated weekly cleanup) - `utils/llm/dspy_langfuse.py`: Removed unused/commented out `status_message` definition block in `LangFuseDSPYCallback` logic. Evidence: It was an orphaned snippet of commented-out python code, matching the definition of unnecessary code in `UNNECESSARY_CODE_GUIDELINE.md`. Other code items highlighted by linters (e.g., `setup_logging` in `src/utils/logging_config.py` and some Pydantic methods in `common/global_config.py`) were verified as protected patterns or actively used via reflection/tests, and were therefore preserved according to the repository's strict conservative removal rules. Co-authored-by: Miyamura80 <38335479+Miyamura80@users.noreply.github.com> --- utils/llm/dspy_langfuse.py | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/llm/dspy_langfuse.py b/utils/llm/dspy_langfuse.py index 91dd442..681a8b6 100644 --- a/utils/llm/dspy_langfuse.py +++ b/utils/llm/dspy_langfuse.py @@ -349,7 +349,6 @@ def on_lm_end( # noqa log.warning( f"Missing required information for full usage/cost calculation: {', '.join(missing_info_elements)}" ) - # status_message = (status_message + "; " if status_message else "") + f"Missing info for cost calc: { ', '.join(missing_info_elements)}" # --- Finalize Span --- if span: