Skip to content

Commit ea65a9a

Browse files
christian-schillingLMG
authored andcommitted
Remove unused parameter
Change-Id: rm-unused-param
1 parent 0f1a07b commit ea65a9a

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

josh-proxy/src/bin/josh-proxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ async fn do_filter(
325325
.odb()?
326326
.add_disk_alternate(&repo_path.join("mirror").join("objects").to_str().unwrap())?;
327327
let updated_refs = josh::filter_refs(&t2, filter, &refslist, josh::filter::empty())?;
328-
let mut updated_refs = josh_proxy::refs_locking(&transaction.repo(), updated_refs, &meta);
328+
let mut updated_refs = josh_proxy::refs_locking(updated_refs, &meta);
329329
josh::housekeeping::namespace_refs(&mut updated_refs, &temp_ns.name());
330330
josh::update_refs(&t2, &mut updated_refs, &temp_ns.reference(&headref));
331331
t2.repo()

josh-proxy/src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,13 @@ pub struct MetaConfig {
3838
pub refs_lock: RefsLock,
3939
}
4040

41-
pub fn refs_locking(
42-
repo: &git2::Repository,
43-
refs: Vec<(String, git2::Oid)>,
44-
meta: &MetaConfig,
45-
) -> Vec<(String, git2::Oid)> {
41+
pub fn refs_locking(refs: Vec<(String, git2::Oid)>, meta: &MetaConfig) -> Vec<(String, git2::Oid)> {
4642
if !meta.config.lock_refs {
4743
return refs;
4844
}
4945
let mut output = vec![];
5046

51-
for (n, id) in refs.into_iter() {
47+
for (n, _) in refs.into_iter() {
5248
if let Some(lid) = meta.refs_lock.get(&n) {
5349
output.push((n, (*lid).into()));
5450
}

0 commit comments

Comments
 (0)