Skip to content

Commit 85de4e7

Browse files
bokikoclaude
andcommitted
chore: remove dead code, unused dependencies, and stale files
Web: - Remove unused npm deps: date-fns, @supabase/ssr, pg - Remove 5 dead TypeScript interfaces from supabase.ts - Remove ~50 lines unused CSS (.glass, .pulse-glow, .interactive, etc.) - Remove empty google-site-verification meta tag Desktop: - Remove dead get_recommendations() method from api_client.py - Remove unused import math from gui.py - Remove unused pythonping from requirements.txt - Collapse redundant format_ping() branch in cli.py Root: - Delete unused root package.json and package-lock.json - Delete stale TODO-SIGNPATH.md - Add supabase/.temp/ to .gitignore Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent aaca9ef commit 85de4e7

10 files changed

Lines changed: 25 additions & 382 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@ coverage/
4141
.vercel
4242
.env*.local
4343

44+
# Supabase CLI temp files
45+
supabase/.temp/
46+
4447
# Local Claude instructions (not for GitHub)
4548
CLAUDE.md

desktop/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
requests>=2.31.0
2-
pythonping>=1.1.4
32
pyinstaller>=6.0.0

desktop/src/api_client.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -323,22 +323,6 @@ def submit_results(self, results: List[Dict], isp_info: Dict,
323323
logger.error(f"Unexpected error submitting results: {e}")
324324
return {"success": False, "error": str(e)}
325325

326-
def get_recommendations(self, isp: str, region: str,
327-
game_slug: str = "overwatch-2") -> Dict:
328-
"""Get server recommendations based on ISP and region"""
329-
try:
330-
response = self.session.get(
331-
f"{self.base_url}/api/recommendations",
332-
params={"isp": isp, "region": region, "game": game_slug},
333-
timeout=10
334-
)
335-
if response.status_code == 200:
336-
return response.json()
337-
except Exception as e:
338-
logger.warning(f"Failed to get recommendations: {e}")
339-
340-
return {"best_server": None, "avg_ping": None, "players_tested": 0}
341-
342326
@staticmethod
343327
def get_log_directory() -> Path:
344328
"""Get the log directory path"""

desktop/src/cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ def format_ping(value: float) -> str:
7070
"""Format ping value with color based on threshold."""
7171
if value == 0:
7272
return colorize("---", Colors.DIM)
73-
if value < 30:
74-
return colorize(f"{value:.0f}ms", Colors.GREEN)
75-
elif value < 60:
73+
if value < 60:
7674
return colorize(f"{value:.0f}ms", Colors.GREEN)
7775
elif value < 100:
7876
return colorize(f"{value:.0f}ms", Colors.YELLOW)

desktop/src/gui.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import threading
99
import webbrowser
1010
import os
11-
import math
1211
from typing import List, Optional
1312

1413
from config import COLORS, REGIONS, REGION_NAMES, APP_VERSION, GAMES

0 commit comments

Comments
 (0)