From 390070159ba2bf9851bbe39e1d6600db7aa8d28e Mon Sep 17 00:00:00 2001 From: Lobo Xu <317307889@qq.com> Date: Wed, 8 Mar 2023 21:55:57 +0800 Subject: [PATCH] [ISSUE #6235] Removed the ForwardRequestProcessors class that is not being used Co-authored-by: loboxu --- .../processor/ForwardRequestProcessor.java | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 broker/src/main/java/org/apache/rocketmq/broker/processor/ForwardRequestProcessor.java diff --git a/broker/src/main/java/org/apache/rocketmq/broker/processor/ForwardRequestProcessor.java b/broker/src/main/java/org/apache/rocketmq/broker/processor/ForwardRequestProcessor.java deleted file mode 100644 index 765644f681..0000000000 --- a/broker/src/main/java/org/apache/rocketmq/broker/processor/ForwardRequestProcessor.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You 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 org.apache.rocketmq.broker.processor; - -import io.netty.channel.ChannelHandlerContext; -import org.apache.rocketmq.broker.BrokerController; -import org.apache.rocketmq.common.constant.LoggerName; -import org.apache.rocketmq.logging.org.slf4j.Logger; -import org.apache.rocketmq.logging.org.slf4j.LoggerFactory; -import org.apache.rocketmq.remoting.netty.NettyRequestProcessor; -import org.apache.rocketmq.remoting.protocol.RemotingCommand; - -public class ForwardRequestProcessor implements NettyRequestProcessor { - private static final Logger log = LoggerFactory.getLogger(LoggerName.BROKER_LOGGER_NAME); - - private final BrokerController brokerController; - - public ForwardRequestProcessor(final BrokerController brokerController) { - this.brokerController = brokerController; - } - - @Override - public RemotingCommand processRequest(ChannelHandlerContext ctx, RemotingCommand request) { - return null; - } - - @Override - public boolean rejectRequest() { - return false; - } -}