lib.ExecContext.sudo(): Remove dead code

ExecContext.sudo() contains dead code, remove it.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-06-02 07:25:06 +02:00
commit 1999f85645
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -452,18 +452,6 @@ class ExecContext(Base):
cc.check_exit_code(ret) cc.check_exit_code(ret)
return ret return ret
return await self._sudo(
cmd,
opts = opts,
wd = wd,
mod_env_sudo = mod_env_sudo,
mod_env_cmd = mod_env_cmd,
throw = throw,
verbose = verbose,
cmd_input = cmd_input,
title = title,
)
async def _get( async def _get(
self, path: str, wd: str | None, throw: bool, verbose: bool | None, title: str self, path: str, wd: str | None, throw: bool, verbose: bool | None, title: str
) -> Result: ) -> Result: