From 7b2474a5d3b9272cd67e3c2663b5c386a56aa356 Mon Sep 17 00:00:00 2001 From: didericis-claude Date: Fri, 29 May 2026 00:23:56 -0400 Subject: [PATCH] refactor(manifest): drop dead _load_json_or_die helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It had no callers — a leftover from the pre-PRD-0011 bot-bottle.json loader (the manifest is per-file Markdown now). Removing it also drops the now-unused `json` import. Co-Authored-By: Claude Opus 4.8 --- bot_bottle/manifest.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/bot_bottle/manifest.py b/bot_bottle/manifest.py index e69b9ec..529ba50 100644 --- a/bot_bottle/manifest.py +++ b/bot_bottle/manifest.py @@ -44,7 +44,6 @@ on-disk files. from __future__ import annotations import ipaddress -import json import os import re from dataclasses import dataclass, field, replace @@ -969,15 +968,6 @@ def _section_dict(value: object, label: str) -> dict[str, object]: return _as_json_object(value, label) -def _load_json_or_die(path: Path) -> dict[str, object]: - try: - with path.open() as f: - doc: object = json.load(f) - except json.JSONDecodeError: - raise ManifestError(f"bot-bottle.json at {path} is not valid JSON") - return _as_json_object(doc, f"bot-bottle.json at {path}") - - def _opt_str(value: object, label: str) -> str: if value is None: return ""