From 3e555dd66c76c881e8ab89acf649a15a5397611b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B4=E7=A9=BA?= <3103908461@qq.com> Date: Sat, 6 Dec 2025 23:20:20 +0800 Subject: [PATCH] Remove unused _deep_merge function Removed the _deep_merge function from plugin_routes.py. --- src/webui/plugin_routes.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/webui/plugin_routes.py b/src/webui/plugin_routes.py index 815245ad..a99d36f5 100644 --- a/src/webui/plugin_routes.py +++ b/src/webui/plugin_routes.py @@ -83,13 +83,6 @@ def normalize_dotted_keys(obj: Dict[str, Any]) -> Dict[str, Any]: 将形如 {'a.b': 1} 的键展开为嵌套结构 {'a': {'b': 1}}。 若遇到中间节点已存在且非字典,记录日志并覆盖为字典。 """ - def _deep_merge(dst: Dict[str, Any], src: Dict[str, Any]) -> None: - for k, v in src.items(): - if k in dst and isinstance(dst[k], dict) and isinstance(v, dict): - _deep_merge(dst[k], v) - else: - dst[k] = v - result: Dict[str, Any] = {} dotted_items = []