Remove unused factory function this will be addressed when publishers are normalised
@@ -3,8 +3,6 @@ package com.quorum.tessera.transaction.publish;
import com.quorum.tessera.enclave.EncodedPayload;
import com.quorum.tessera.encryption.PublicKey;
-import java.util.ServiceLoader;
-
/** Publishes messages from one node to another */
public interface PayloadPublisher {
@@ -16,7 +14,4 @@ public interface PayloadPublisher {
*/
void publishPayload(EncodedPayload payload, PublicKey recipientKey);
- static PayloadPublisher create() {
- return ServiceLoader.load(PayloadPublisher.class).findFirst().get();
- }
}
