From 3a2e4592601fcfbfd8f8dcceccd025304a263189 Mon Sep 17 00:00:00 2001 From: makslevental Date: Sun, 28 Jun 2026 18:08:18 -0700 Subject: [PATCH] [eudsl-python-extras] Remove dead code: unused lambda and duplicate imports - Remove `_mlir_type_ctor_to_np_dtype` lambda in util.py (defined but never called) - Remove unused imports in linalg.py: `_dispatch_mixed_values`, `segmented_accessor`, duplicate `get_default_loc_context` --- projects/eudsl-python-extras/mlir/extras/dialects/linalg.py | 4 ---- projects/eudsl-python-extras/mlir/extras/util.py | 3 --- 2 files changed, 7 deletions(-) diff --git a/projects/eudsl-python-extras/mlir/extras/dialects/linalg.py b/projects/eudsl-python-extras/mlir/extras/dialects/linalg.py index f2672694..51ce527e 100644 --- a/projects/eudsl-python-extras/mlir/extras/dialects/linalg.py +++ b/projects/eudsl-python-extras/mlir/extras/dialects/linalg.py @@ -5,13 +5,9 @@ from ... import ir from ...dialects import linalg from ...dialects._ods_common import ( - _dispatch_mixed_values, _cext, get_op_results_or_values, - get_default_loc_context, get_op_result_or_op_results, - get_default_loc_context, - segmented_accessor, ) # noinspection PyUnresolvedReferences diff --git a/projects/eudsl-python-extras/mlir/extras/util.py b/projects/eudsl-python-extras/mlir/extras/util.py index 2e65e847..10ec92ef 100644 --- a/projects/eudsl-python-extras/mlir/extras/util.py +++ b/projects/eudsl-python-extras/mlir/extras/util.py @@ -149,9 +149,6 @@ def find(op: Operation): np.float64: T.f64, } -_mlir_type_ctor_to_np_dtype = lambda: { - v: k for k, v in _np_dtype_to_mlir_type_ctor.items() -} def np_dtype_to_mlir_type(np_dtype):