Skip to content

Commit

Permalink
IdentityService: Remove unused createAndInitializeIdentity method
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Nov 14, 2023
1 parent 831ea4e commit 33b4f56
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions identity/src/main/java/bisq/identity/IdentityService.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ public CompletableFuture<Boolean> shutdown() {
// API
///////////////////////////////////////////////////////////////////////////////////////////////////

public CompletableFuture<Identity> createAndInitializeIdentity(String keyId, String identityTag) {
Identity identity = createIdentity(keyId, identityTag);
return networkService.getNetworkIdOfInitializedNode(identity.getNetworkId(), identity.getTorIdentity())
.thenApply(nodes -> identity);
}

private Identity createIdentity(String keyId, String identityTag) {
KeyPair keyPair = keyPairService.getOrCreateKeyPair(keyId);
PubKey pubKey = new PubKey(keyPair.getPublic(), keyId);
Expand Down

0 comments on commit 33b4f56

Please sign in to comment.