Skip to content

chore(prompts): remove duplicate variable definition dead code - #931

Closed
stevenaldinger wants to merge 1 commit into
unclecode:mainfrom
stevenaldinger:chore/remove-dead-code-prompt
Closed

stevenaldinger wants to merge 1 commit into
unclecode:mainfrom
stevenaldinger:chore/remove-dead-code-prompt

Conversation

@stevenaldinger

Copy link
Copy Markdown

Summary

PROMPT_EXTRACT_BLOCKS variable was defined twice, so the first definition was immediately overwritten.

List of files changed and why

crawl4ai/prompts.py - to remove first PROMPT_EXTRACT_BLOCKS variable definition that was not doing anything because it was immediately overwritten

How Has This Been Tested?

This is a chore commit that had no functional effect.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added/updated unit tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@unclecode

Copy link
Copy Markdown
Owner

Thanks for spotting this, @stevenaldinger! We've applied the same fix on develop — removed the duplicate PROMPT_EXTRACT_BLOCKS definition (61 lines of dead code). Closing this PR but crediting you in CONTRIBUTORS.md for identifying it.

@unclecode unclecode closed this Feb 2, 2026
unclecode added a commit that referenced this pull request Feb 2, 2026
The first definition (with tags/questions fields) was immediately
overwritten by the second simpler definition — pure dead code.
Removes 61 lines of unused prompt text.

Inspired by PR #931 (stevenaldinger).
unclecode added a commit that referenced this pull request Feb 2, 2026
Credit danyQe, saipavanmeruga7797, and stevenaldinger for
identifying bugs that were resolved on develop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants