Uh oh!
There was an error while loading. Please reload this page.
chore: remove dead load_token utility - #337
Open
detail-app[bot] wants to merge 1 commit into
Open
Conversation
Current Aviator status
This PR is not ready to merge (currently in state pending): this PR has not been approved. Pending Status Checks
See the real-time status of this PR on the
Aviator webapp.
Use the Aviator Chrome Extension
to see the status of your PR within GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove the unused
load_token()helper fromsrc/config/storage.rsalong with its dedicated
load_token_errors_when_absenttest. Tworemaining tests that verified via
load_tokennow check throughload_config()instead, preserving coverage ofstore_tokenandclear_credentials.load_tokenhad zero production callers: its only consumer(
lib.rs::create_client) was inlined in PR #219 ("refactor: remove--api-url CLI flag") which read
api_tokendirectly from the loadedconfig. The function was a left-over utility superseded by that
inlined logic. Test-only references inside
storage.rswere its soleremaining users.
History
Dead Code PRs can be configured here.
Summary by cubic
Remove the unused
load_token()helper and update tests to read tokens viaload_config(). This eliminates dead code without changing runtime behavior.load_token()had no production callers; token reads useload_config().api_token.store_and_load_token->store_token_roundtrip; removedload_token_errors_when_absent; remaining assertions checkapi_tokenviaload_config.Written for commit 017beb5. Summary will update on new commits.