Remove unused BrokerApiNoOp implementation
Default BrokerApi implementation is binded by events-broker library.
BrokerApiNoOp is never used.
Feature: Issue 11600
Change-Id: I5ac73db3df990622a09eb44eb92ed7fc16d263bb
diff --git a/src/main/java/com/googlesource/gerrit/plugins/multisite/broker/BrokerApiNoOp.java b/src/main/java/com/googlesource/gerrit/plugins/multisite/broker/BrokerApiNoOp.java
deleted file mode 100644
index 314437e..0000000
--- a/src/main/java/com/googlesource/gerrit/plugins/multisite/broker/BrokerApiNoOp.java
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (C) 2019 The Android Open Source Project
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package com.googlesource.gerrit.plugins.multisite.broker;
-
-import com.gerritforge.gerrit.eventbroker.BrokerApi;
-import com.gerritforge.gerrit.eventbroker.EventMessage;
-import com.gerritforge.gerrit.eventbroker.TopicSubscriber;
-import com.google.common.collect.Sets;
-import com.google.inject.Inject;
-import java.util.Set;
-import java.util.function.Consumer;
-
-public class BrokerApiNoOp implements BrokerApi {
- private final Set<TopicSubscriber> topicSubscribers;
-
- @Inject
- public BrokerApiNoOp() {
- topicSubscribers = Sets.newHashSet();
- }
-
- @Override
- public boolean send(String topic, EventMessage event) {
- return true;
- }
-
- @Override
- public void receiveAsync(String topic, Consumer<EventMessage> eventConsumer) {
- topicSubscribers.add(TopicSubscriber.topicSubscriber(topic, eventConsumer));
- }
-
- @Override
- public void disconnect() {
- topicSubscribers.clear();
- }
-
- @Override
- public Set<TopicSubscriber> topicSubscribers() {
- return topicSubscribers;
- }
-
- @Override
- public void replayAllEvents(String topic) {}
-}