From 507e4322d62ada111019f4f69978e05490eb0066 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sun, 1 Dec 2024 02:33:22 -0500 Subject: [PATCH] Remove unused SysCommand.__json__ method (#2986) --- archinstall/lib/general.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index 92420bda..090b5148 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -400,15 +400,6 @@ class SysCommand: def __repr__(self, *args: list[Any], **kwargs: dict[str, Any]) -> str: return self.decode('UTF-8', errors='backslashreplace') or '' - def __json__(self) -> dict[str, str | bool | list[str] | dict[str, Any] | None]: - return { - 'cmd': self.cmd, - 'callbacks': self._callbacks, - 'peak': self.peek_output, - 'environment_vars': self.environment_vars, - 'session': self.session is not None - } - def create_session(self) -> bool: """ Initiates a :ref:`SysCommandWorker` session in this class ``.session``.