cleanup: remove dead code + deduplicate GPU state reads

Dead code removed:
- globals.py: GUILD_SETTINGS (empty dict, zero consumers)
- config.py: unused 'import os'
- config_manager.py: unused 'import os' and 'Union'
- server_manager.py: duplicate 'from datetime import datetime, timedelta'

GPU deduplication:
- get_current_gpu_url() now delegates to config_manager.get_gpu()
- get_gpu_status() endpoint now delegates to config_manager.get_gpu()
- Both previously re-read memory/gpu_state.json directly
This commit is contained in:
2026-04-09 20:34:17 +03:00
parent 834b2ea188
commit 5ac1f7fa8c
5 changed files with 7 additions and 25 deletions

View File

@@ -5,7 +5,6 @@ Uses Pydantic for type-safe configuration loading from:
- config.yaml (all other configuration)
"""
import os
from pathlib import Path
from typing import Optional
from pydantic import BaseModel, Field