Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

Cleanup dead code related to load_from_file

Louis Choquelc93aedd11462
diff --git a/pipelex/libraries/library_manager.py b/pipelex/libraries/library_manager.py
index 171439ab1..1186486d2 100644
--- a/pipelex/libraries/library_manager.py
+++ b/pipelex/libraries/library_manager.py
@@ -143,20 +143,6 @@ class LibraryManager(LibraryManagerAbstract):
return all_plx_paths
- # @override
- # def load_from_file(self, plx_path: Path) -> None:
- # """Load a single file - this method is kept for compatibility."""
- # if not PipelexInterpreter.is_pipelex_file(plx_path):
- # msg = f"File is not a valid Pipelex PLX file: {plx_path}"
- # raise LibraryError(msg)
-
- # blueprint = PipelexInterpreter(file_path=plx_path).make_pipelex_bundle_blueprint()
- # try:
- # self.load_from_blueprint(blueprint)
- # except PipeDefinitionError as exc:
- # msg = f"Could not load PLX blueprint from '{plx_path}': {exc}"
- # raise LibraryError(msg) from exc
-
@override
def load_from_blueprint(self, blueprint: PipelexBundleBlueprint) -> list[PipeAbstract]:
"""Load a blueprint."""
diff --git a/pipelex/libraries/library_manager_abstract.py b/pipelex/libraries/library_manager_abstract.py
index dfc6840b8..9c23a9f09 100644
--- a/pipelex/libraries/library_manager_abstract.py
+++ b/pipelex/libraries/library_manager_abstract.py
@@ -26,10 +26,6 @@ class LibraryManagerAbstract(ABC):
def load_libraries(self, library_dirs: list[Path] | None = None, library_file_paths: list[Path] | None = None) -> None:
pass
- # @abstractmethod
- # def load_from_file(self, plx_path: Path) -> None:
- # pass
-
@abstractmethod
def load_from_blueprint(self, blueprint: PipelexBundleBlueprint) -> list[PipeAbstract]:
pass