Skip to content

chore: remove dead HuggingFace client scaffolding#22

Merged
dexwritescode merged 1 commit intomainfrom
chore-cleanup-huggingface-client
May 7, 2026
Merged

chore: remove dead HuggingFace client scaffolding#22
dexwritescode merged 1 commit intomainfrom
chore-cleanup-huggingface-client

Conversation

@dexwritescode
Copy link
Copy Markdown
Owner

Summary

  • Removed queueRequest, processRequestQueue, extractNextPageToken from HuggingFaceClient — none were called from outside the class, and the queue they fed was never consumed
  • Removed cancelAll and cancelRequest from HttpInterface and CurlHttpClient — virtual stubs with TODO bodies, no callers anywhere in the codebase
  • Replaced the vague CURL destructor TODO comment with an explanation of the intentional cleanup strategy
  • Updated MockHttpClient in tests to match the trimmed interface

requestAsync (the live async path called 4× for search/details/files/download) is untouched. ModelInfo fields are kept for future GUI use.

13/13 unit tests pass.

Strip queueRequest, processRequestQueue, extractNextPageToken, cancelAll,
and cancelRequest — none were connected to live code paths. Also replace
the vague CURL destructor TODO with an explanation of the intentional
cleanup strategy.
@dexwritescode dexwritescode added the release:skip Skips release creation on merge label May 7, 2026
@dexwritescode dexwritescode merged commit 6db893d into main May 7, 2026
3 checks passed
@dexwritescode dexwritescode deleted the chore-cleanup-huggingface-client branch May 7, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:skip Skips release creation on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant