Skip to content

Delete some dead code in readlinks.py#11500

Merged
mekarpeles merged 1 commit intointernetarchive:masterfrom
cdrini:refactor/readlinks-dead-code
Dec 4, 2025
Merged

Delete some dead code in readlinks.py#11500
mekarpeles merged 1 commit intointernetarchive:masterfrom
cdrini:refactor/readlinks-dead-code

Conversation

@cdrini
Copy link
Copy Markdown
Collaborator

@cdrini cdrini commented Nov 21, 2025

None of these are referenced elsewhere.

Technical

Testing

On testing, this seems to load: https://testing.openlibrary.org/api/volumes/brief/isbn/0451526538.json

Screenshot

Stakeholders

@cdrini cdrini marked this pull request as ready for review November 21, 2025 00:40
Copilot AI review requested due to automatic review settings November 21, 2025 00:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes dead code from readlinks.py by deleting unused imports and functions. The removed code includes three imports (requests, config, and OpenLibrary) and five functions that were never referenced elsewhere in the codebase. This cleanup improves code maintainability by removing approximately 60 lines of unused code.

Key changes:

  • Removed unused imports: requests, infogami.config, and openlibrary.api.OpenLibrary
  • Removed five unused helper functions related to Solr queries and edition lookups

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mekarpeles mekarpeles self-assigned this Dec 1, 2025
@mekarpeles mekarpeles merged commit 1d36732 into internetarchive:master Dec 4, 2025
10 checks passed
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.

3 participants