Remove unused _deep_merge function

Removed the _deep_merge function from plugin_routes.py.
pull/1412/head
晴空 2025-12-06 23:20:20 +08:00 committed by GitHub
parent f7ac70fa1e
commit 3e555dd66c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 7 deletions

View File

@ -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 = []