diff options
| author | aur-build <aur-build@localhost> | 2026-11-21 11:05:43 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-21 11:05:43 +0000 |
| commit | 7ccfb9a8f96b6f3000f36bdf76d95a4f6afd2826 (patch) | |
| tree | 710a12ec5cc6e2e93d717787dccc7660ddc4b5ba /src/review/candidates.rs | |
| parent | d3da3a1882999a80db34089153f9684fd8d7bbee (diff) | |
| download | aur-build-7ccfb9a8f96b6f3000f36bdf76d95a4f6afd2826.tar.gz aur-build-7ccfb9a8f96b6f3000f36bdf76d95a4f6afd2826.zip | |
db: delete two candidate queries nothing in production calls
`open_reviews_for` and `reopen_rejected` were both declared in `db`, both
re-exported by `review::candidates`, and both reached by nobody in `src`. The
auditor found them; the reason they stayed invisible is in the next commit.
`reopen_rejected` is simply gone: no caller, no test, nothing to lose.
`open_reviews_for` was a test convenience — `tests/detect.rs` used it to fetch
"the pending candidate for this pkgbase". The production query `pending` already
returns pending candidates and `CandidateRow` carries `pkgbase_id`, so the test
now filters that instead. Same assertion, same rows, one fewer public function
that existed only because a test wanted it.
Diffstat (limited to 'src/review/candidates.rs')
| -rw-r--r-- | src/review/candidates.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/review/candidates.rs b/src/review/candidates.rs index 59db99b..236f85b 100644 --- a/src/review/candidates.rs +++ b/src/review/candidates.rs @@ -2,8 +2,8 @@ use crate::db::{self, candidates as sql, Db, Pkgbase, ReleaseRow}; use crate::error::Result; pub use crate::db::candidates::{ - all as all_candidates, by_id as candidate_by_id, mark_viewed, open_reviews_for, pending as pending_candidates, - reopen_rejected, set_diff_digest, NewCandidate, + all as all_candidates, by_id as candidate_by_id, mark_viewed, pending as pending_candidates, + set_diff_digest, NewCandidate, }; #[derive(Debug, Clone, PartialEq, Eq)] |
