diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-05 17:33:59 -0400 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2022-09-09 14:12:14 -0700 |
commit | 2a76afcef1fbd5cac0435cc9a11f765120a48fe9 (patch) | |
tree | b780155013427bb06d4e03273af2784cd4e268f1 /mesonbuild/compilers/compilers.py | |
parent | e3a4dc72183650bea56e12ae5a060ee378244494 (diff) | |
download | meson-2a76afcef1fbd5cac0435cc9a11f765120a48fe9.zip meson-2a76afcef1fbd5cac0435cc9a11f765120a48fe9.tar.gz meson-2a76afcef1fbd5cac0435cc9a11f765120a48fe9.tar.bz2 |
compilers: drop some useless info from CompileResult
text_mode was never set, nor used, and pid was set but never used.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index ef35110..d2ac7c6 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -454,8 +454,7 @@ class CompileResult(HoldableObject): def __init__(self, stdo: T.Optional[str] = None, stde: T.Optional[str] = None, command: T.Optional[T.List[str]] = None, - returncode: int = 999, pid: int = -1, - text_mode: bool = True, + returncode: int = 999, input_name: T.Optional[str] = None, output_name: T.Optional[str] = None, cached: bool = False): @@ -466,8 +465,6 @@ class CompileResult(HoldableObject): self.command = command or [] self.cached = cached self.returncode = returncode - self.pid = pid - self.text_mode = text_mode class Compiler(HoldableObject, metaclass=abc.ABCMeta): @@ -811,7 +808,7 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta): mlog.debug('Compiler stdout:\n', stdo) mlog.debug('Compiler stderr:\n', stde) - result = CompileResult(stdo, stde, command_list, p.returncode, p.pid, input_name=srcname) + result = CompileResult(stdo, stde, command_list, p.returncode, input_name=srcname) if want_output: result.output_name = output yield result |