diff --git a/cachi2/core/package_managers/yarn_classic/workspaces.py b/cachi2/core/package_managers/yarn_classic/workspaces.py index 02f091c3c..67584c1e1 100644 --- a/cachi2/core/package_managers/yarn_classic/workspaces.py +++ b/cachi2/core/package_managers/yarn_classic/workspaces.py @@ -1,4 +1,3 @@ -import json from itertools import chain from pathlib import Path from typing import Any, Generator, Iterable @@ -85,11 +84,6 @@ def _extract_workspaces_globs(package: dict[str, Any]) -> list[str]: return workspaces_globs -def _read_package_from(path: RootedPath) -> dict[str, Any]: - """Read package.json from a path.""" - return json.loads(path.join_within_root("package.json").path.read_text()) - - def extract_workspace_metadata(package_path: RootedPath) -> list[Workspace]: """Extract workspace metadata from a package.""" package_json = PackageJson.from_file(package_path.join_within_root("package.json"))