Skip to content

Commit

Permalink
Merge pull request #24312 from vespa-engine/andreer/remove-unused-member
Browse files Browse the repository at this point in the history
remove unused member
  • Loading branch information
Eirik Nygaard authored Oct 5, 2022
2 parents 3533daf + 76076fb commit 6b8dc4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.archive;

import com.yahoo.config.provision.SystemName;
import com.yahoo.config.provision.TenantName;
import com.yahoo.config.provision.zone.ZoneId;
import com.yahoo.text.Text;
import com.yahoo.vespa.hosted.controller.Controller;
import com.yahoo.vespa.hosted.controller.api.integration.archive.ArchiveBucket;
import com.yahoo.vespa.hosted.controller.api.integration.archive.ArchiveService;
Expand All @@ -14,7 +12,6 @@
import java.util.HashSet;
import java.util.Map;
import java.util.Optional;
import java.util.OptionalInt;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors;
Expand All @@ -34,12 +31,10 @@ public class CuratorArchiveBucketDb {

private final ArchiveService archiveService;
private final CuratorDb curatorDb;
private final SystemName system;

public CuratorArchiveBucketDb(Controller controller) {
this.archiveService = controller.serviceRegistry().archiveService();
this.curatorDb = controller.curator();
this.system = controller.zoneRegistry().system();
}

public Optional<URI> archiveUriFor(ZoneId zoneId, TenantName tenant, boolean createIfMissing) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private Map<TenantName, ArchiveAccess> cloudTenantArchiveExternalAccessRoles() {
.filter(t -> t instanceof CloudTenant)
.map(t -> (CloudTenant) t)
.collect(Collectors.toUnmodifiableMap(
Tenant::name, cloudTenant -> cloudTenant.archiveAccess()));
Tenant::name, CloudTenant::archiveAccess));
}

}

0 comments on commit 6b8dc4a

Please sign in to comment.