mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 14:19:53 +01:00
Remove unused clock from BdfIncomingMessageHook
This commit is contained in:
@@ -24,7 +24,7 @@ public abstract class BdfIncomingMessageHook implements IncomingMessageHook,
|
|||||||
protected final MetadataParser metadataParser;
|
protected final MetadataParser metadataParser;
|
||||||
|
|
||||||
protected BdfIncomingMessageHook(ClientHelper clientHelper,
|
protected BdfIncomingMessageHook(ClientHelper clientHelper,
|
||||||
MetadataParser metadataParser, Clock clock) {
|
MetadataParser metadataParser) {
|
||||||
this.clientHelper = clientHelper;
|
this.clientHelper = clientHelper;
|
||||||
this.metadataParser = metadataParser;
|
this.metadataParser = metadataParser;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package org.briarproject.introduction;
|
|||||||
import org.briarproject.api.FormatException;
|
import org.briarproject.api.FormatException;
|
||||||
import org.briarproject.api.clients.Client;
|
import org.briarproject.api.clients.Client;
|
||||||
import org.briarproject.api.clients.ClientHelper;
|
import org.briarproject.api.clients.ClientHelper;
|
||||||
|
import org.briarproject.api.clients.SessionId;
|
||||||
import org.briarproject.api.contact.Contact;
|
import org.briarproject.api.contact.Contact;
|
||||||
import org.briarproject.api.contact.ContactId;
|
import org.briarproject.api.contact.ContactId;
|
||||||
import org.briarproject.api.contact.ContactManager.AddContactHook;
|
import org.briarproject.api.contact.ContactManager.AddContactHook;
|
||||||
@@ -20,14 +21,12 @@ import org.briarproject.api.introduction.IntroductionManager;
|
|||||||
import org.briarproject.api.introduction.IntroductionMessage;
|
import org.briarproject.api.introduction.IntroductionMessage;
|
||||||
import org.briarproject.api.introduction.IntroductionRequest;
|
import org.briarproject.api.introduction.IntroductionRequest;
|
||||||
import org.briarproject.api.introduction.IntroductionResponse;
|
import org.briarproject.api.introduction.IntroductionResponse;
|
||||||
import org.briarproject.api.clients.SessionId;
|
|
||||||
import org.briarproject.api.sync.ClientId;
|
import org.briarproject.api.sync.ClientId;
|
||||||
import org.briarproject.api.sync.Group;
|
import org.briarproject.api.sync.Group;
|
||||||
import org.briarproject.api.sync.GroupId;
|
import org.briarproject.api.sync.GroupId;
|
||||||
import org.briarproject.api.sync.Message;
|
import org.briarproject.api.sync.Message;
|
||||||
import org.briarproject.api.sync.MessageId;
|
import org.briarproject.api.sync.MessageId;
|
||||||
import org.briarproject.api.sync.MessageStatus;
|
import org.briarproject.api.sync.MessageStatus;
|
||||||
import org.briarproject.api.system.Clock;
|
|
||||||
import org.briarproject.clients.BdfIncomingMessageHook;
|
import org.briarproject.clients.BdfIncomingMessageHook;
|
||||||
import org.briarproject.util.StringUtils;
|
import org.briarproject.util.StringUtils;
|
||||||
|
|
||||||
@@ -93,12 +92,11 @@ class IntroductionManagerImpl extends BdfIncomingMessageHook
|
|||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
IntroductionManagerImpl(DatabaseComponent db, ClientHelper clientHelper,
|
IntroductionManagerImpl(DatabaseComponent db, ClientHelper clientHelper,
|
||||||
MetadataParser metadataParser, Clock clock,
|
MetadataParser metadataParser, IntroducerManager introducerManager,
|
||||||
IntroducerManager introducerManager,
|
|
||||||
IntroduceeManager introduceeManager,
|
IntroduceeManager introduceeManager,
|
||||||
IntroductionGroupFactory introductionGroupFactory) {
|
IntroductionGroupFactory introductionGroupFactory) {
|
||||||
|
|
||||||
super(clientHelper, metadataParser, clock);
|
super(clientHelper, metadataParser);
|
||||||
this.db = db;
|
this.db = db;
|
||||||
this.introducerManager = introducerManager;
|
this.introducerManager = introducerManager;
|
||||||
this.introduceeManager = introduceeManager;
|
this.introduceeManager = introduceeManager;
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ public class IntroductionManagerImplTest extends BriarTestCase {
|
|||||||
clock = context.mock(Clock.class);
|
clock = context.mock(Clock.class);
|
||||||
|
|
||||||
introductionManager = new IntroductionManagerImpl(
|
introductionManager = new IntroductionManagerImpl(
|
||||||
db, clientHelper, metadataParser, clock, introducerManager,
|
db, clientHelper, metadataParser, introducerManager,
|
||||||
introduceeManager, introductionGroupFactory
|
introduceeManager, introductionGroupFactory
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user