Skip to content

Commit

Permalink
Remove ServiceProxy::InitOtherMembers
Browse files Browse the repository at this point in the history
  • Loading branch information
KosmosFult committed Nov 16, 2024
1 parent 15010fd commit 67c54e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions trpc/client/service_proxy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,6 @@ void ServiceProxy::SetServiceProxyOptionInner(const std::shared_ptr<ServiceProxy
// Init the service routing name.
// It should be executed after 'InitSelectorFilter'.
InitServiceNameInfo();

InitOtherMembers();
}

void ServiceProxy::PrepareStatistics(const std::string& service_name) {
Expand Down Expand Up @@ -680,8 +678,6 @@ void ServiceProxy::ProxyStatistics(const ClientContextPtr& ctx) {
}
}

void ServiceProxy::InitOtherMembers() {}

bool ServiceProxy::SelectTarget(const ClientContextPtr& context) {
FilterStatus status = FilterStatus::REJECT;
auto selector_filter = FilterManager::GetInstance()->GetMessageClientFilter(option_->selector_name);
Expand Down
3 changes: 0 additions & 3 deletions trpc/client/service_proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ class ServiceProxy {
/// @note Subclasses can implement transport by overriding this method themselves.
virtual void InitTransport();

/// @brief Init the derived class members if need. It will be called after SetServiceProxyOptionInner.
virtual void InitOtherMembers();

private:
// Init the service routing name by config
void InitServiceNameInfo();
Expand Down

0 comments on commit 67c54e7

Please sign in to comment.