From afcd3e1089e52a24944c5d3163db336c511d8e41 Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Thu, 2 Oct 2025 21:56:31 +0800 Subject: [PATCH] Tiny remove duplicated code (#11164) --- python/sglang/srt/utils.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/python/sglang/srt/utils.py b/python/sglang/srt/utils.py index 2a26e029c..52f7a0fff 100644 --- a/python/sglang/srt/utils.py +++ b/python/sglang/srt/utils.py @@ -2618,14 +2618,6 @@ def read_system_prompt_from_file(model_name: str) -> str: return "" -def bind_or_assign(target, source): - if target is not None: - target.copy_(source) - return target - else: - return source - - def prepack_weight_if_needed(weight): if weight.device != torch.device("cpu"): return weight