From 5a2afdefdd6e7565aef1335075fffeec2a97d9bc Mon Sep 17 00:00:00 2001 From: Fangliding Date: Tue, 25 Aug 2026 03:57:19 +0800 Subject: [PATCH] Dead code --- app/router/balancing_override.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/app/router/balancing_override.go b/app/router/balancing_override.go index 70b2906ca..e3a34b75d 100644 --- a/app/router/balancing_override.go +++ b/app/router/balancing_override.go @@ -2,25 +2,8 @@ package router import ( sync "sync" - - "github.com/xtls/xray-core/common/errors" ) -func (r *Router) OverrideBalancer(balancer string, target string) error { - var b *Balancer - for tag, bl := range *r.balancers.Load() { - if tag == balancer { - b = bl - break - } - } - if b == nil { - return errors.New("balancer '", balancer, "' not found") - } - b.override.Put(target) - return nil -} - type overrideSettings struct { target string }